Python 3.5.3 (v3.5.3:1880cb95a742, Jan 16 2017, 08:49:46) [GCC 4.2.1 (Apple Inc. build 5666) (dot 3)] on darwin Type "copyright", "credits" or "license()" for more information. >>> WARNING: The version of Tcl/Tk (8.5.9) in use may be unstable. Visit http://www.python.org/download/mac/tcltk/ for current information. >>> 12 > 13 False >>> b = (12 > 13) >>> b False >>> type(b) >>> type(12 < 13) >>> 12 < 13 True >>> 12 == 13 # are 12 and 13 equal? False >>> 12 = 13 SyntaxError: can't assign to literal >>> z = 13 >>> 13 == 12 False >>> 12 == 12 True >>> "hello" == "hello!" False >>> "hello" == "hello" # ctrl-p (mac) or alt-p (windows) True >>> if (12 > 13): print("huh?") >>> if (12 < 13): print("that makes sense") that makes sense >>> ================= RESTART: /Users/ssheehan/Documents/alum.py ================= Enter your class year: 2016 you have graduated! >>> ================= RESTART: /Users/ssheehan/Documents/alum.py ================= Enter your class year: 2020 you are a current student! >>> ================= RESTART: /Users/ssheehan/Documents/alum.py ================= Enter your class year: 2017 you are a current student! >>> ================= RESTART: /Users/ssheehan/Documents/alum.py ================= Enter your class year: 2017 you are a current student! >>> ================= RESTART: /Users/ssheehan/Documents/alum.py ================= Enter your class year: 2016 you have graduated! >>> 12 != 13 # != is "not equal to" True >>> # <, >, <=, >=, ==, != >>> ============ RESTART: /Users/ssheehan/Documents/triangle_shift.py ============ Enter a number: 10 # # # # # # # # # # ############ >>> ============ RESTART: /Users/ssheehan/Documents/triangle_shift.py ============ Enter a number: 10 ## # # # # # # # # # # # # # # # # # # ############ >>> ============ RESTART: /Users/ssheehan/Documents/triangle_shift.py ============ Enter a number: 10 # ## # # # # # # # # # # # # # # # # # # ############ >>> ============ RESTART: /Users/ssheehan/Documents/triangle_shift.py ============ Enter a number: 10 # ## # # # # # # # # # # # # # # # # # # ############ >>> ============ RESTART: /Users/ssheehan/Documents/triangle_shift.py ============ Enter a number: 10 # ## # # # # # # # # # # # # # # # # # # ############ >>> ============ RESTART: /Users/ssheehan/Documents/triangle_shift.py ============ Enter a number: 10 # ## ############ # # ############ # # ############ # # ############ # # ############ # # ############ # # ############ # # ############ # # ############ # # ############ # # ############ >>> ============ RESTART: /Users/ssheehan/Documents/triangle_shift.py ============ Enter a number: 10 # ## # # # # # # # # # # # # # # # # # # # # ############ >>> ============ RESTART: /Users/ssheehan/Documents/triangle_shift.py ============ Enter a number: 10 # ## # # # # # # # # # # # # # # # # # # ############ >>> ============ RESTART: /Users/ssheehan/Documents/triangle_shift.py ============ Enter a number: 10 # ## # # # # # # # # # # # # # # # # # # ############ >>> round(8.456,1) 8.5 >>> round(8.456,2) 8.46 >>> round(8.5) 8 >>> round(8.55,1) 8.6 >>> round(8.55,0) 9.0 >>> round(8.55) 9 >>> print('She said "Hello"') She said "Hello" >>> print("She said \"Hello\"") She said "Hello" >>>