Lecture Notes on 28 Aug 2020 * Install Python3 and learn how to run your programs from the command line: https://www.cs.utexas.edu/users/mitra/csFall2020/cs313/start.html Learning Python * Write the Hello World program def main(): print ("Hello World!") main() * Characterset: ASCII and Unicode * Variables - start with a letter or underscore - followed by n letters, digits, or underscores - cannot be a reserved words * Types - int, float, bool, str * Statements and Expressions * Simple assignment statements * Operators - Arithmetic: + - * / // % ** - Comparison: < <= > >= == != - Boolean: not, and, or - Bitwise: ~ & | ^ - Shift: << >> * Conditionals: if-else, if-elif-else * Loops: while, for * Functions: - built-in - libraries: math, random, os - user defined * Lists: 1-D, 2-D, n-D * Tuples, Sets, Dictionaries * Simple Input / Output - console: input, print - files * Class