Python Study Group

Main.PythonStudyGroup History

Hide minor edits - Show changes to markup

July 09, 2007, at 10:42 AM EST by JZA - Added new python forum.
Changed lines 63-64 from:
to:
Changed lines 88-89 from:

Get feedback and ongoing discussion at the TLLTS Forum.

to:

Get feedback and ongoing discussion at the TLLTS Forum. Other Python forums include Python Forum

May 23, 2007, at 09:37 AM EST by jza -
Changed lines 84-85 from:
to:
May 18, 2007, at 03:25 PM EST by JZA -
Changed lines 84-85 from:
to:
May 18, 2007, at 03:24 PM EST by JZA -
Changed lines 84-85 from:
to:
May 03, 2007, at 11:55 PM EST by verbal -
Changed line 81 from:
  • Display the day-of-week name for a date DayOfWeek by verbal
to:
  • Display the day-of-week name for a date DayOfWeek by Verbal
Changed lines 83-84 from:
to:
May 03, 2007, at 08:11 PM EST by verbal -
Changed lines 81-83 from:

Display the day-of-week name for a date DayOfWeek by verbal Random numbers PythonRandomNumbers by Verbal

to:
May 03, 2007, at 08:10 PM EST by verbal -
Changed lines 82-83 from:
to:

Random numbers PythonRandomNumbers by Verbal

May 03, 2007, at 07:39 PM EST by verbal -
Changed lines 4-5 from:

Take, for instance, an "if" loop:

to:

Take, for instance, an "if" statement:

May 03, 2007, at 02:56 PM EST by verval -
Changed lines 81-82 from:

Display the weekday name for a date DayOfWeek by verbal

to:

Display the day-of-week name for a date DayOfWeek by verbal

May 03, 2007, at 02:53 PM EST by verval -
Changed lines 81-82 from:
to:

Display the weekday name for a date DayOfWeek by verbal

May 03, 2007, at 02:47 PM EST by 208.27.203.126 -
Changed line 81 from:
  DayOfWeek
to:
May 03, 2007, at 02:46 PM EST by 208.27.203.126 -
Added lines 80-81:

Python Code Examples

  DayOfWeek
May 03, 2007, at 01:58 PM EST by 70.167.31.16 -
Changed lines 1-4 from:

<<<<<<< ======= One thing that sets Python apart from other languages is that it is INDENTATION SENSITIVE! =====================

to:

Indentation Sensitive

One thing that sets Python apart from other languages is that it is indentation sensitive! You might see this refered to as whitespace sensitive, also.

Take, for instance, an "if" loop:

Changed line 7 from:
 ...   print "Greater than"
to:
 ...     print "Greater than"
Changed lines 14-15 from:

===================== >>>>>>>

to:

Indenting the fourth line produces the desired result.

 >>> if 3 > 4 :
 ...     print "Greater than"
 ... else :
 ...     print "Less than"

 Less than

So, the indentation, or whitespace, is not merely for looks, but a part of the language and has meaning.

Changed line 81 from:

Get feedback and ongoing discussion at the TLLTS Forum.

to:

Get feedback and ongoing discussion at the TLLTS Forum.

May 03, 2007, at 01:38 PM EST by 70.167.31.16 -
Added lines 1-2:

<<<<<<< =======

Added line 14:

>>>>>>>

Changed line 71 from:

Get feedback and ongoing discussion at the TLLTS Forum.

to:

Get feedback and ongoing discussion at the TLLTS Forum.

May 03, 2007, at 01:36 PM EST by 208.27.203.126 -
Changed lines 3-10 from:

>>> if 3 > 4 : ... print "Greater than" ... else : ... print "Less than"

  File "<stdin>", line 4
    print "Less than"
        ^

IndentationError: expected an indented block

to:
 >>> if 3 > 4 :
 ...   print "Greater than"
 ... else :
 ... print "Less than"
   File "<stdin>", line 4
     print "Less than"
         ^
 IndentationError: expected an indented block
May 03, 2007, at 01:35 PM EST by 208.27.203.126 -
Deleted line 0:
Changed lines 2-11 from:
to:

===================== >>> if 3 > 4 : ... print "Greater than" ... else : ... print "Less than"

  File "<stdin>", line 4
    print "Less than"
        ^

IndentationError: expected an indented block =====================

May 03, 2007, at 01:26 PM EST by 208.27.203.126 -
Added lines 1-3:

One thing that sets Python apart from other languages is that it is INDENTATION SENSITIVE!

May 01, 2007, at 09:02 PM EST by jza -
Changed lines 56-57 from:

IRC Meeting Day

Still deciding on what day to have IRC meetings.

to:

Python Forum

Get feedback and ongoing discussion at the TLLTS Forum.

April 25, 2007, at 09:53 AM EST by Michael Vogt - Added the mailing list, and made the lower bit a "Resources" heading.
Added lines 29-31:

Resources

Added lines 53-55:

Python Tutor Mailing List

Visit Python Tutor Mailing List to sign up for questions and answers. You can choose the daily digest or receive them as they come, and of course the list runs on mailman, a Python-based mailing list.

April 24, 2007, at 08:26 AM EST by jza -
Changed lines 31-36 from:
to:
April 24, 2007, at 08:25 AM EST by jza - Move recordings to their own page
Changed lines 31-36 from:
  • Strings
  • Lists
  • Tuples
  • Sets
  • Dictionaries (split)
to:
April 23, 2007, at 09:28 AM EST by Ryochan7 - fixed some urls for python lectures
Changed line 32 from:
  • Lists
to:
  • Lists
Changed line 34 from:
  • Sets
to:
  • Sets
April 23, 2007, at 12:04 AM EST by JZA -
Changed line 29 from:

Python Lectures

to:

Python Lectures Recordings

April 22, 2007, at 11:33 PM EST by JZA -
Changed lines 31-36 from:
  • http://www.oooxtremo.org/DataStructureStrings.ogg Strings
  • http://www.oooxtremo.org/DataStructure_Lists.ogg Lists
  • http://www.oooxtremo.org/DataStructure_tuples.ogg Tuples
  • http://www.oooxtremo.org/DataStructure_Sets.org Sets
  • http://www.oooxtremo.org/DataStructure_dictionaries.ogg Dictionaries (split)
to:
  • Strings
  • Lists
  • Tuples
  • Sets
  • Dictionaries (split)
April 22, 2007, at 11:32 PM EST by JZA - Added some recordings on Python topics
Added lines 29-36:

Python Lectures

A lecture by Dr. Sergio Rey of San Diego St. University on Python Data Sturctures, including strings, lists, tuples, dictionaries and sets.

  • http://www.oooxtremo.org/DataStructureStrings.ogg Strings
  • http://www.oooxtremo.org/DataStructure_Lists.ogg Lists
  • http://www.oooxtremo.org/DataStructure_tuples.ogg Tuples
  • http://www.oooxtremo.org/DataStructure_Sets.org Sets
  • http://www.oooxtremo.org/DataStructure_dictionaries.ogg Dictionaries (split)
April 21, 2007, at 08:03 PM EST by tankcat - I suck at english
Changed lines 17-18 from:

Or, alternatively, we can pass pass the prompt to raw_input() directly:

to:

Or, alternatively, we can pass the prompt to raw_input() directly:

April 21, 2007, at 07:52 PM EST by tankcat - alternate method
Added lines 16-22:

Or, alternatively, we can pass pass the prompt to raw_input() directly:

#!/usr/bin/python
name = raw_input('Please enter your name: ')
print 'How are you, ' + name + '?' 
April 21, 2007, at 01:56 AM EST by 201.151.151.36 -
Changed lines 10-13 from:

[@

  1. !/usr/bin/python
to:

[@#!/usr/bin/python Name.py - Ask your name and replies with your name

Changed lines 15-18 from:

print 'How are you, ' + name + '?' @]

to:

print 'How are you, ' + name + '?' @] We run the program and we can get the following:

 $ python Name.py
Please enter your name
Dann
How are you Dann? 
April 21, 2007, at 01:53 AM EST by 201.151.151.36 -
Changed lines 7-19 from:
to:

Standard input and output

To have Python standard input output we need to use the print and raw_input(), print will become a function on Python 3000 but so far it's still a command. Here is the code sample:

#!/usr/bin/python

print 'Please enter your name.'
name = raw_input()
print 'How are you, ' + name + '?'
April 20, 2007, at 06:22 PM EST by 68.97.39.216 -
Changed line 11 from:
  • Also links to several other online books and resources, available in a printable format.
to:
  • Also links to several other online books and resources, available in a printable format. Likely to be the text used.
Changed line 13 from:
  • Seems like a nice book, too. From the site:
    This book serves as a guide or tutorial to the Python programming language. It is mainly targeted at newbies (those who are new to computers). It is also useful for experienced programmers who are new to Python.
to:
  • Seems like a nice book, too. From the site:
    This book serves as a guide or tutorial to the Python programming language. It is mainly targeted at newbies (those who are new to computers). It is also useful for experienced programmers who are new to Python. Might be more complete than Python Programming
Changed line 15 from:
  • A book published by Apress, available in several formats for download.
to:
  • A book published by Apress, available in several formats for download, but written with experienced programmers in mind.
Changed lines 19-22 from:

I think it a good plan to glance at these and other books, and have a (hopefully brief) discussion about which suits the group best. It appears that the first three texts are good for the first-time programmer. Any opinions on other qualities we'd like the text to have?

to:

We're leaning towards Python Programming, so that will likely be the text to use, starting with the Interactive shell.

IRC Meeting Day

Still deciding on what day to have IRC meetings.

April 19, 2007, at 11:19 AM EST by 70.167.31.16 -
Changed line 19 from:

I think it a good plan to glance at these and other books, and have a (hopefully brief) discussion about which suits the group best. It appears that the first three texts are good for the first-time programmer. Any opinions on what qualities we'd like the text to have?

to:

I think it a good plan to glance at these and other books, and have a (hopefully brief) discussion about which suits the group best. It appears that the first three texts are good for the first-time programmer. Any opinions on other qualities we'd like the text to have?

April 19, 2007, at 11:18 AM EST by 70.167.31.16 -
Changed line 13 from:
  • Seems like a nice book, too. From the site:
    This book serves as a guide or tutorial to the Python programming language. It is mainly targeted at newbies (those who are new to computers). It is also useful for experienced programmers who are new to Python.
to:
  • Seems like a nice book, too. From the site:
    This book serves as a guide or tutorial to the Python programming language. It is mainly targeted at newbies (those who are new to computers). It is also useful for experienced programmers who are new to Python.
Changed line 19 from:

I think it a good plan to glance at these and other books, and have a (hopefully brief) discussion about which suits the group best. Any general ideas for exactly what qualities we'd like the text to have?

to:

I think it a good plan to glance at these and other books, and have a (hopefully brief) discussion about which suits the group best. It appears that the first three texts are good for the first-time programmer. Any opinions on what qualities we'd like the text to have?

April 19, 2007, at 10:01 AM EST by Michael Vogt -
Changed lines 17-18 from:
  • An advanced text to use after learning the basics, listed as a 0.1 version, and this book recommends Byte of Python as an intro text.
to:
  • An advanced text to use after learning the basics, listed as a 0.1 version, and this book recommends Byte of Python as an intro text. Looks like it could be out of date, though.
April 19, 2007, at 09:49 AM EST by Michael Vogt -
Deleted line 1:
Added line 7:
Changed line 11 from:
  • Also links to several other online books and resources
to:
  • Also links to several other online books and resources, available in a printable format.
Changed lines 13-14 from:
  • Seems like a nice book, too. Maybe a bit short, from the site:
    This book serves as a guide or tutorial to the Python programming language. It is mainly targeted at newbies (those who are new to computers). It is also useful for experienced programmers who are new to Python.
to:
  • Seems like a nice book, too. From the site:
    This book serves as a guide or tutorial to the Python programming language. It is mainly targeted at newbies (those who are new to computers). It is also useful for experienced programmers who are new to Python.
  • Dive into Python
    • A book published by Apress, available in several formats for download.
  • Thinking in Python
    • An advanced text to use after learning the basics, listed as a 0.1 version, and this book recommends Byte of Python as an intro text.
April 19, 2007, at 09:42 AM EST by Michael Vogt -
Changed lines 1-2 from:

Just something to give us a quick start.

to:

Hello Python

Changed lines 6-15 from:
 hello_world()
to:
 hello_world()

Books

So, in order to work together, it seems we'll need a text to work from, but which book to use? The current books that have been recommended or mentioned are:

  • Python Programming
    • Also links to several other online books and resources
  • Byte of Python
    • Seems like a nice book, too. Maybe a bit short, from the site:
      This book serves as a guide or tutorial to the Python programming language. It is mainly targeted at newbies (those who are new to computers). It is also useful for experienced programmers who are new to Python.

I think it a good plan to glance at these and other books, and have a (hopefully brief) discussion about which suits the group best. Any general ideas for exactly what qualities we'd like the text to have?

April 19, 2007, at 09:12 AM EST by Michael Vogt -
Changed lines 3-5 from:
 def hello_world():
     print 'Hello World!'
to:
 def hello_world():
     print 'Hello World!'
April 19, 2007, at 09:05 AM EST by Michael Vogt -
Changed lines 1-6 from:

Just something to give us a quick start.

to:

Just something to give us a quick start.

 def hello_world():
     print 'Hello World!'

 hello_world()
April 19, 2007, at 08:55 AM EST by Michael Vogt - Hoagies!
Added line 1:

Just something to give us a quick start.