pimento[~]$ fixscreenmirror pimento[~]$ python3 Python 3.6.5 (default, Apr 1 2018, 05:46:30) [GCC 7.3.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> word = "apples" >>> word[0] == "a" or "A" True >>> (word[0] == "a") or ("A") True >>> (word[0] == "a") or ("A") True >>> word = "Apples" >>> (word[0] == "a") or ("A") 'A' >>> (word[0] == "a") or (word[0] == "A") True >>> word2 = "cheese" >>> word = "cheese" >>> (word[0] == "a") or (word[0] == "A") False >>> (word[0] == "a") or ("A") 'A' >>> (word[0] is "a") or (word[0] is "A") False >>> word = "apples" >>> (word[0] is "a") or (word[0] is "A") True >>> test1 = word[0] == "a" >>> test2 = (word[0] == "A") >>> test1 True >>> test2 False >>> test1 or test2 True >>> print("hello!") File "", line 1 print("hello!") ^ IndentationError: unexpected indent >>> print("hello!") hello! >>> val = print("hello!") hello! >>> val >>> print(val) None >>> type(val) >>> [1]+ Stopped python3 pimento[~]$ fg python3 pimento[~]$ cd CS21/cs21-students/library.git/inclass/w04 pimento[w04]$ ls letterOfTheDay.py quit.py samplefunctions.py validate.py pimento[w04]$ python3 samplefunctions.py -------------- - Welcome -------------- The total: 1 Enter a radius: 2 The area of a circle with radius 2.00 is 12.57 -------------- - Good bye -------------- pimento[w04]$ ls letterOfTheDay.py quit.py samplefunctions.py validate.py pimento[w04]$ atom validate.py pimento[w04]$ python3 validate.py Please enter a positive integer divisble by 5: -6 Please enter a second integer divisble by 5: Traceback (most recent call last): File "validate.py", line 48, in main() File "validate.py", line 36, in main secondValue = int(input("Please enter a second integer divisble by 5: ")) EOFError pimento[w04]$ python3 validate.py Please enter a positive integer divisble by 5: -6 Please enter a second integer divisble by 5: ^CTraceback (most recent call last): File "validate.py", line 48, in main() File "validate.py", line 36, in main secondValue = int(input("Please enter a second integer divisble by 5: ")) KeyboardInterrupt pimento[w04]$ python3 validate.py Please enter a positive integer divisble by 5: -6 Invalid input: -6 Please enter a positive integer divisble by 5: 6 Invalid input: 6 Please enter a positive integer divisble by 5: 11 Invalid input: 11 Please enter a positive integer divisble by 5: 5 Please enter a second integer divisble by 5: