x​ = 7 x​ 10​ x​ 10​ >>>​ (x gets assigned >>>​ >>>​ value of 7) y​ y​ >>>​ >>>​ >>>​ x​ (show the value of x​ x​ <​ >>>​ #Equal​ >>>​ #Less​ x times 4; x is unchanged) False 28 False x​ >>>​ #Less​ x**2 >>>​ (show the square of x​ !=​ y​ >>>​ #Not​ the value of x; x is unchanged) True 49 True x​ >>>​ x >>>​ (show the value of x, 10 >>>​ unchanged) False x​ or y​ >>>​ x​ y >>>​ x​ =​ True (only one must be true) >>>​ (x gets a True new value of 7*4) x​ and != 10 >>>​ x False (both must be true) >>> 28 Programs​ To​ Mode​ >>>​ ​ ​ ​ Example: ("Hello >>> print ​ ​ ​ ​ ​ To​ programs​ Python​ using​ Mode:​ ​ ​ ​ ​ ​ ​ ​ To​ From​ Ctrl-N/​ Command-N​ File​ New →​ ​ ​ ​ ​ ​ ​ Window​ To​ run​ F5​ Run​ Module​ Save​ .py​ ​ ​ ​ ​ ​ extension.​ ​ You also install an Integrated Development Environment (IDE) such as Spyder (the Scientific PYthon Development EnviRonment ), which may be found at: Environments such as Spyder make it easy to develop and test your text-based programs. Using Spyder library functions, you can also to create graphical data visualizations . Notes: Quotation​ NOT​ Python​ gives​ ​ ​ ​ ​ error​ to make​ included​ quotation​ marks​ ​ ​ ​ ​ ​ ​ ​ ​ accepts or Unmatched quotation marks or parentheses are examples of syntax errors, and you ‘ ‘ “ “. cannot run your program until you fix these. Comments​ a​ and by​ They are helpful information for humans.​
>>>​ x​ (x gets assigned value of 7) >>>​ x​ (show the value of x times 4; x is unchanged) 28 >>>​ x**2 (show the square of the value of x; x is unchanged) 49 >>>​ x (show the value of x, unchanged) 7 >>>​ x​ (x gets a new value of 7*4) >>> x 28 >>>​ x​ 10​ >>>​ y​ >>>​ x​ #Equal​ False >>>​ x​ #Not​ True >>>​ y​ 10 >>>​ x​ True >>>​ x​ and y != 10 False (both must be true) >>>​ x​ 10​ >>>​ y​ >>>​ x​ #Less​ False >>>​ x​ #Less​ True >>>​ x​ False >>>​ x​ or y​ True (only one must be true) Programs​ To​ ​ Mode​ ​ ​ >>>​ Example: ​ >>> ​ print ​ ("Hello ​ ​ To​ ​ ​ programs​ ​ ​ Python​ ​ using​ ​ ​ Mode:​ To​ ​ From​ ​ ​ ​ Ctrl-N/​ Command-N​ ​ File​ New ​ Window​ To​ F5​ Run​ ​ Module​ ​ →​ ​ Save​ ​ ​ .py​ ​ extension.​ You also install an Integrated Development Environment (IDE) such as Spyder (the Scientific PYthon Development EnviRonment ), which may be found at: Environments such as Spyder make it easy to develop and test your text-based programs. Using Spyder library functions, you can also to create graphical data visualizations . Notes: Quotation​ NOT​ Python​ ​ gives​ ​ ​ ​ error​ ​ to ​ make​ ​ ​ ​ included​ ​ ​ quotation​ ​ marks​ accepts ‘ ‘ or “ “. Unmatched quotation marks or parentheses are examples of syntax errors, and you cannot run your program until you fix these. Comments​ and They are helpful information for humans.​ =​ <​ by​ run​ a​ !=​ =