Talk:Non-Programmer's Tutorial for Python 2.6

Interactive code examples
Even better than syntax highlighting would be actual in-browser interactive examples like those that can be seen at trinket.io. I saw trinkets in an edX course and they seem really useful, especially for beginners. This would require wikibooks to allow their embed codes but it looks like they are adding more subjects (HTML, music theory, python console) so it could be a cool partnership.

Not every example could be converted but it would be a huge win for those that could!

Passing variables to os.system
This book should cover the os.system call and state how to pass a varible to this call for example I have >>> os.system ("ls -l ,dir ") and that does not work 70.70.255.225 (talk) 00:00, 5 December 2010 (UTC)

Syntax highlighting
I think the tutorial could get even more attractive with some syntax highlighting of the code. Wikibooks supports the mw:Extension:SyntaxHighlight GeSHi extension, which actually looks really nice. In order to use it, code examples have to be put into   tags, which could actually replace the   ...   tags used almost everywhere in the book so far. This works only for code blocks and not for in-line code, but I think that's a minor problem. Any objections? Siebengang 12:58, 27 September 2007 (UTC)


 * I could implement this change quickly using my bot, if nobody disagrees with the change. I think it would be a big improvement over the existing code formatting. --Whiteknight (Page) (Talk) 14:17, 27 September 2007 (UTC)


 * Jrincayc 02:41, 28 September 2007 (UTC)


 * Automating dirty work is great:
 * Go for it! I can have a look at the result and fine-tune things if necessary. Siebengang 08:29, 28 September 2007 (UTC)
 * Go for it! I can have a look at the result and fine-tune things if necessary. Siebengang 08:29, 28 September 2007 (UTC)


 * ✅. I didnt realize there were so many special cases, so my bot ended up making a big mess. I've fixed it all as best I could, and i think it all looks pretty good. Let me know if we need anything else. --Whiteknight (Page) (Talk) 17:15, 28 September 2007 (UTC)
 * Thank you! I went through the book and fixed some more small things. Should be more or less bug free now. --Siebengang 10:15, 1 October 2007 (UTC)

Refurbishing Code examples according to Python Style Guide (PEP 8)
During the next weeks, I am going to check the formatting of the code examples so that they get compliant with the Python Style Guide (PEP 8, http://www.python.org/dev/peps/pep-0008/). Apart from that, there are some LaTeX style references in the text (\ref{...something...}) and some other minor bugs which I'll fix, too. --Siebengang 12:33, 11 January 2007 (UTC)


 * Done up to Debugging --Siebengang 15:37, 11 January 2007 (UTC)
 * Done up to Lists --Siebengang 15:27, 15 January 2007 (UTC)
 * Done up to Boolean Expressions --Siebengang 10:45, 17 January 2007 (UTC)
 * Done until Using Modules --Siebengang 11:49, 22 January 2007 (UTC)
 * Did More on Lists, Revenge of the Strings, The End and FAQ --Siebengang 11:38, 23 January 2007 (UTC)
 * Finally done: Dealing with the imperfect and File IO --Siebengang 12:08, 23 January 2007 (UTC)

Before You Begin Your Quest chapter
I merged the information from Before You Begin Your Quest with Intro and took away the link from the table of contents, to get rid of the redundency. --Siebengang (talk) 11:21, 20 February 2008 (UTC)

Redundant solution set info?
Is there a particular reason why the same text from module exercise descriptions is included in the solution set as well? It seems redundant to me with the current (description of exercise) (solution bar) (description of exercise) setup the text has now. --Tehdrago (talk) 20:20, 15 November 2008 (UTC)

break and continue
It's probably worth introducing the 'break' and 'continue' statements here. I don't think they are described anywhere at all in the book at the moment Dooglus 19:37, 1 May 2006 (UTC) dooglus

None
Might want to have something on assigning a value of "None" to variables in the Count to 10 module or in the previous lesson, Who Goes There?". The Exercise section in Count to 10 uses it without a prior introduction, I was a bit confused when trying to figure out the solution.

Maybe something like this?

I'm not sure about the exacts details here as I'm learning python myself, maybe someone more experienced could clean this up and add it in? --Tehdrago (talk) 10:18, 15 November 2008 (UTC)

Merge talk pages?
I added the "Count to 10" talk page contents here to the main page. I think it might be easier if all the talk pages for the wikibook were in the same location. As there only seems to be a small number of contributors currently working on the wiki, I think it would make things easier to have all the suggestions in the same place. Maybe create a "master" talk page that had the contents of all the individual talk similar to the "printable version" style page? It might get messy if all the module talk pages were redirected here. --Tehdrago (talk) 09:06, 16 November 2008 (UTC)

Archiving
Would anyone mind if I moved the older, implemented suggestion discussions here to an "archive" page, so only the not discussed / unresolved issues are shown? --Tehdrago (talk) 09:06, 16 November 2008 (UTC)
 * Hmm, I found a to-do list in the module "The End", I'll use that for keeping track of suggested changes for now. --Tehdrago (talk) 18:18, 16 November 2008 (UTC)

Python 3.0
I am going to start creating Non-Programmer's Tutorial for Python 3.0 soon. Since most of the examples in the existing tutorial will be invalid in python 3.0, and python 2.6 will be here for a while, I figure we can have two tutorials for awhile. Jrincayc (talk) 04:49, 30 December 2008 (UTC)
 * I started it. Jrincayc (talk) 15:29, 31 December 2008 (UTC)


 * Should we move this tutorial for Python 2.6 to "Non-Programmer's Tutorial for Python 2.6"? --DavidCary (talk) 00:11, 5 January 2009 (UTC)


 * Well, I think any python 2.2 to 2.6 will work with this version. Almost all the examples will work in python 1.6 - 2.6.  That said I have no objection to moving it to something like "Non-Programmer's Tutorial for Python 2".  Jrincayc (talk) 04:20, 5 January 2009 (UTC)

I moved it...something is wrong...its all red links? I even moved the subpages. --33rogers (talk) 11:36, 20 June 2009 (UTC)
 * nevermind I just purged the wiki cache and its proper now :) --33rogers (talk) 11:40, 20 June 2009 (UTC)

Exercises
I noticed that many solutions to excersises were much messier than they needed to be. Should they at least note that their are other solutions?
 * They can note that there are other solutions. Some of the exercises already have multiple solutions.  They also can be rewritten, but be careful to only use features of python that have already been discussed (For example don't use boolean logic until after it has been discussed in the tutorial.) Jrincayc (talk) 12:17, 9 June 2009 (UTC)

I just love WIKI
I just Love WIKI .. GREAT WORK. ...Thanks to all of You ..

username/password exercise
The first solution given, just keeps on asking you your name and doesn't go to the end of the program (for me at least). The second solution works fine.

How to contribute to future versions?
I would like to help make this document available for up-to-date versions of Python (2.7 and 3.x). However, it looks like this project is generated automatically out of a LaTeX source, meaning it would not be helpful to edit it here. Is that correct? How should others contribute to newer versions?

Python 2 - Outdated
While this is still a good tutorial, Python 2 has reached it's end-of-life as of 2020. I would recommend removing this tutorial from the 'Featured', and adding a disclaimer mentioning that Python 2 is outdated.