Python Introduction Workshop
Basics
1.) Start python REPL
python
2.) Hello World!
print 'Hello World!'
3.)
What to talk about...
- Variables (integers, arrays)
- Conditionals (if/elif/else)
- Loops (for, while)
- Functions (def function_name(args):)
- Exception handling? (try/catch)
- File I/O...reading and writing from files:
f = open('handd-book.wiki', 'w') # write img_file = open(filename, 'wb') # i think append? f = open('handd-book.wiki', 'r') # read