Recitation 2b (Nov 8, 2011)

str.format usage examples.

Code examples

Example 1


Download (right click -> save link as "ex1.py")

Example 2


Download (right click -> save link as "ex2.py")

Interpreter session log

Balloons Model

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License