>>>​ 21​ // >>>​ 19​ Integer truncates // Division 5.0 decimals Parentheses​ Python Parentheses​ the​ an​ In​ the​ Python​ to understand​ parentheses​ affect​ ​ ​ ​ ​ ​ ​ Examples: >>>​ >>>​ 6​ 2 >>>​ 2​ 11 17 / 8 25 18 Remember: Be​ sure​ to​ need​ Be​ to​ Assigning Values to Variables and Testing​ Values Using Relational Operators Python​ to test for equality. The symbol does NOT mean equality, but assignment or the ‘==’ ‘=’ “gets of”. More complex logic may be constructed using logical operators as well (and or). Example​ Example​ Example​
Integer Division // >>>​ 19​ >>>​ 21​ // 5.0 truncates decimals Parentheses​ Parentheses​ Python​ to ​ understand​ ​ ​ parentheses​ ​ affect​ ​ ​ Examples: >>>​ 6​ 11 8 >>>​ 2​ 17 25 >>>​ 2 18 Remember: Be​ need​ Be​ Assigning Values to Variables and Testing​ Values Using Relational Operators Python​ ‘==’ to test for equality. The ‘=’ symbol does NOT mean equality, but assignment or “gets the of”. More complex logic may be constructed using logical operators as well (and / or). Example​ Example​ Example​ an​ sure​ the​ to​ the​ In​ Python to​
Intoduction-to-Python-v3-3-30-18.docx