Python 2 hour intro: Difference between revisions

no edit summary
imported>Jesstess
No edit summary
imported>Jesstess
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 1:
This material is intended for a 1.5 - 2 hour interactive lecture.
 
[[Python 2 hour intro/Handout| Lecture handout]]
 
==Math==
Line 555 ⟶ 557:
 
<b>Remember that '=' is for assignment and '==' is for comparison.</b>
 
==Lists==
 
==Lists==
Line 662:
 
==Loops==
 
== For loops ==
 
Use a <code>for</code> loop to do something to every element in a list.
Line 687 ⟶ 685:
==End of Part 2==
 
Congratulations! You've learned about and practiced writing and executing Python scripts, booleans,making conditionals,choices andwith if/elsebooleans blocksand conditionals, and you'veusing writtenlists your own Pythonand functionsiteration. This is a huge, huge accomplishment!
 
[[File:Champagne.png|100px]][[File:Party.png|125px]]
 
Take a break, stretch, meet some neighbors, and ask the staff if you have any questions about this material.
 
Take a break, stretch, meet some neighbors, and ask the staff if you have any questions about this material.
 
 
[[Boston Python Workshop 6/Friday|&laquo; Back to the Friday Workshop page]]
Anonymous user