Introduction​ to​ Python (adapted for v3) ​ Latest update: 3/30/18 M.K. Roy For original 2 version, see: Google’s​ website​ (​ ) Contents What​ is​ Mathematical Notation​ in​ Python​ ​ ​ Parentheses​ Python Assigning Values to Variables and Testing Values Relational Operators Programs​ in​ Python Control Structures: Conditional​ in​ Python ​ Control Structures: Programming​ with​ in​ Python ​ Python​ of​ Working with Data in Summary What​ Python​ a​ create​ programs​ that​ how​ to​ Programs are​ behind​ all​ the​ applications​ you​ ​ ​ programs that power​ you​ ​ ​ ​ ​ and​ you​ will​ can write solve​ interesting​ problems.​ ​ ​ ​ ​ ​ For​ Python,​ A Reference​ Doc​ for​ Python​ can​ be​ found​ here ​ ​ ​ ​ ​ ​ ​ ​ Mathematical​ Python Python​ uses​ mathematical​ that​ math​ class.​ Test​ the examples​ that​ indicate​ the​ ​ ​ ​ ​ ​ ​ each Operator Symbol Example​ 1 Example​ Explanation >>>​ 7**2 >>>​ 2**4 Repeated Exponent ** multiplication 49 16 >>>​ 10​ 3 >>>​ 24​ Remainder​ Modulo % division 4 >>>​ 21​ >>>​ 19​ Divides,​ preserves Division / 5.25 decimals 3.8
Introduction​ (adapted for v3) Latest update: 3/30/18 M.K. Roy For original Python 2 version, see: Google’s​ website​ Contents What​ Mathematical ​ Notation​ ​ in​ ​ Python​ Parentheses​ Assigning Values to Variables and Testing Values Relational Operators Programs​ Control Structures: Conditional​ Control Structures: Programming​ Python​ Working with Data in Python ​ Summary What​ Python​ Programs ​ are​ ​ behind​ ​ that ​ power​ ​ the​ ​ applications​ ​ write ​ programs​ ​ to​ ​ solve​ ​ interesting​ ​ problems.​ For​ A ​ Reference​ ​ Doc​ ​ for​ ​ Python​ ​ can​ ​ be​ ​ found​ ​ here Mathematical​ Python​ ​ in​ ​ math​ ​ class.​ ​ Test​ ​ the examples​ indicate​ ​ Operator Symbol Example​ Example​ Explanation Exponent ** >>>​ 7**2 49 >>>​ 2**4 16 Repeated multiplication Modulo % >>>​ 10​ 1 >>>​ 24​ 4 Remainder​ division Division / >>>​ 19​ 3.8 >>>​ 21​ 5.25 Divides,​ preserves decimals 3 how​ of​ that​ to​ Python,​ in​ the​ with​ can Python programs you​ you​ all​ Python is​ a​ that​ (​ ) create​ and​ that​ will​ you​ Python each Python in​ uses​ mathematical​
Intoduction-to-Python-v3-3-30-18.docx