Software Carpentry
Basic Scripting


Introduction


You Can Skim This Lecture If...


Python's Strengths


Python's Weaknesses


Why Another Language?


Execution Cycle


Running Python Programs


Execution Shortcuts


Variables


Possible Mistakes


Printing


Quoting


Converting Values to Strings


Escape Sequences


Numbers


Arithmetic


Booleans


Short-Circuit Evaluation


Comparisons


String Comparisons


Conditionals


Why Indentation?


While Loops


Break and Continue


String Formatting


Format Specifiers


Supported Formats


Summary