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. >>> =============== RESTART: /Users/ssheehan/Documents/weather.py =============== Enter temperature in fahrenheit: 10 10 >>> =============== RESTART: /Users/ssheehan/Documents/weather.py =============== Enter temperature in fahrenheit: 9 stay inside >>> =============== RESTART: /Users/ssheehan/Documents/weather.py =============== Enter temperature in fahrenheit: 70 okay to go outside >>> =============== RESTART: /Users/ssheehan/Documents/weather.py =============== Enter temperature in fahrenheit: 100 okay to go outside very hot, stay inside >>> =============== RESTART: /Users/ssheehan/Documents/weather.py =============== Enter temperature in fahrenheit: 100 okay to go outside >>> =============== RESTART: /Users/ssheehan/Documents/weather.py =============== Enter temperature in fahrenheit: 100 very hot, stay inside >>> =============== RESTART: /Users/ssheehan/Documents/weather.py =============== Enter temperature in fahrenheit: 90 cold, stay inside >>> =============== RESTART: /Users/ssheehan/Documents/weather.py =============== Enter temperature in fahrenheit: -30 moderate >>> =============== RESTART: /Users/ssheehan/Documents/weather.py =============== Enter temperature in fahrenheit: -30 extreme weather >>> =============== RESTART: /Users/ssheehan/Documents/weather.py =============== Enter temperature in fahrenheit: 100 extreme weather >>> >>> >>> >>> >>> colors1 = ["red","blue","green"] >>> >>> >>> # [] are for lists, "" are for string >>> >>> >>> colors1[0] 'red' >>> colors1[1] 'blue' >>> colors1[2] 'green' >>> colors1[-1] 'green' >>> len(colors1) 3 >>> word = "hello" >>> len(word) 5 >>> word[0] 'h' >>> word2 = "hello!" >>> word2[-1] '!' >>> word + word2 'hellohello!' >>> >>> colors2 = ["purple","yellow","aqua"] >>> >>> >>> colors1 ['red', 'blue', 'green'] >>> colors2 ['purple', 'yellow', 'aqua'] >>> >>> colors1 + colors2 ['red', 'blue', 'green', 'purple', 'yellow', 'aqua'] >>> all_colors = colors1 + colors2 >>> all_colors ['red', 'blue', 'green', 'purple', 'yellow', 'aqua'] >>> >>> all_colors + "navy" Traceback (most recent call last): File "", line 1, in all_colors + "navy" TypeError: can only concatenate list (not "str") to list >>> all_colors + ["navy"] ['red', 'blue', 'green', 'purple', 'yellow', 'aqua', 'navy'] >>> all_colors ['red', 'blue', 'green', 'purple', 'yellow', 'aqua'] >>> all_colors = all_colors + ["navy"] >>> all_colors ['red', 'blue', 'green', 'purple', 'yellow', 'aqua', 'navy'] >>> for c in ["orange","maroon"]: all_colors = all_colors + [c] >>> all_colors ['red', 'blue', 'green', 'purple', 'yellow', 'aqua', 'navy', 'orange', 'maroon'] >>> for c in all_colors: print(c) red blue green purple yellow aqua navy orange maroon >>> for c in all_colors: print(c, end="") redbluegreenpurpleyellowaquanavyorangemaroon >>> for c in all_colors: print(c, end=" ") red blue green purple yellow aqua navy orange maroon >>> for c in all_colors: print(c, end=", ") red, blue, green, purple, yellow, aqua, navy, orange, maroon, >>> >>> for c in all_colors: print(c, end=", ") print() red, blue, green, purple, yellow, aqua, navy, orange, maroon, >>> for c in all_colors: print(c, end=", ") print(" ",=end"") SyntaxError: invalid syntax >>> >>> for c in all_colors: print(c, end=", ") print(" ",end="") red, blue, green, purple, yellow, aqua, navy, orange, maroon, >>> >>> >>> print("one","two","three") one two three >>> print("one","two","three",sep="") onetwothree >>> print("one","two","three",sep=",") one,two,three >>> print("one","two","three",sep=", ") one, two, three >>> >>> >>> >>> x = 189.74 # want to round to nearest 100 >>> round(x) 190 >>> >>> >>> x/100 1.8974000000000002 >>> round(x/100) 2 >>> round(x/100)*100 200 >>> x = 260 >>> round(x/100)*100 300 >>> >>> place = 100 >>> round(x/place)*place 300 >>> >>> x = 184 >>> place = 10 >>> >>> >>> round(x/place)*place 180 >>> ============== RESTART: /Users/ssheehan/Documents/quadratic.py ============== Enter a: 1 Enter b: 0 Enter c: -4 there are solutions >>>