Python Workshops for Beginners/Saturday October 25th review: Difference between revisions

From OpenHatch wiki
Content added Content deleted
imported>Ehashman
imported>Ehashman
Line 22: Line 22:
## Write a function <tt>hello</tt> in 'exercise1.py'
## Write a function <tt>hello</tt> in 'exercise1.py'
## Debugging common problems with code
## Debugging common problems with code
## String matching <pre>words = ['zebra', 'weather', 'spaghetti', 'pierogies', 'squash', 'zucchini', 'pizza']</pre>
## String matching
## Dictionary exercise from Shakespeare
## Dictionary exercise from Shakespeare

Revision as of 23:35, 21 October 2014

Welcome to the first review session for the Python Workshops for Beginners! We'll quickly go over the content from last class, work on exercises, and keep the floor open for questions to make sure everyone is on track for the morning lecture.

Resources

Lecture Outline

  1. Review from last time
    • variables
    • strings
    • if
    • functions
    • lists
    • for loops
    • raw_input()
    • dictionaries
    • using a module
  2. Review exercises
    1. Write a function hello in 'exercise1.py'
    2. Debugging common problems with code
    3. String matching
      words = ['zebra', 'weather', 'spaghetti', 'pierogies', 'squash', 'zucchini', 'pizza']
    4. Dictionary exercise from Shakespeare