Notes for January 25, 2017 Simple Data Types: ------------------------------------------- int -2147483647 ... +2147483647 (32 bit) long arbitrary digits, in software float (+/-)10^-308 ... (+/-)10^+308, 15-16 sig figs bool False or True complex (float (+/-) float j) example: (5+6j) More Complicated Types: ------------------------------------------- List mutable list of arbitrary types Tuple immutable list of arbitrary types String immutable list of characters Dictionaries Hash Table of Key-Value pairs Variables: ------------------------------------------- Have a name Names are case-sensitive Names should indicate function of the value Names are dynamically typed Assigning values to variables: Variable = Expression Pick variable names that tell you what the value means, but not so large that it becomes painful to type the name every time. Good: Frog_Counter = 0 Bad: X = 0 (not meaningful) My_Variable_For_Counting_Frogs = 0 (too long)