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

From OpenHatch wiki
Content added Content deleted
imported>Ehashman
imported>Ehashman
 
Line 23: Line 23:
## Debugging common problems with code
## Debugging common problems with code
## String matching <pre>words = ['zebra', 'weather', 'spaghetti', 'pierogies', 'squash', 'zucchini', 'pizza']</pre>
## String matching <pre>words = ['zebra', 'weather', 'spaghetti', 'pierogies', 'squash', 'zucchini', 'pizza']</pre>
## Dictionary exercise from Shakespeare
## [[Python Workshops for Beginners/Saturday September 27th homework#Shakespeare Exercises|Dictionary exercise]] from Shakespeare

Latest revision as of 23:43, 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