pimento[~]$ nvidia-settings ** Message: PRIME: No offloading required. Abort ** Message: PRIME: is it supported? no pimento[~]$ python3 Python 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> >>> 7*2 14 >>> 7/2 3.5 >>> 7**2 # exponentiation 49 >>> 7%2 # mod operator 1 >>> 10%3 1 >>> 15%3 0 >>> 17%3 2 >>> import math >>> >>> math.sqrt(9) 3.0 >>> math.pi 3.141592653589793 >>> math.e 2.718281828459045 >>> math.sin(math.pi/2) 1.0 >>> >>> abs(-4) 4 >>> pow(3,2) 9 >>> (3+5)*2 16 >>> 3+5*2 13 >>> exit() pimento[~]$ pimento[~]$ cd cs21/inclass/week02/ pimento[week02]$ atom right_triangle.py pimento[week02]$ python3 right_triangle.py Enter side a: 3 Enter side b: 4 Hypotenuse is: 5.0 pimento[week02]$ python3 right_triangle.py Enter side a: 9 Enter side b: 14 Hypotenuse is: 16.64331697709324 pimento[week02]$ python3 right_triangle.py Enter side a: 9 Enter side b: 40 Hypotenuse is: 41.0 pimento[week02]$ python3 right_triangle.py Enter side a: 5 Enter side b: 12 Hypotenuse is: 13.0 pimento[week02]$ python3 right_triangle.py Enter side a: 4.7 Enter side b: 2.1 Hypotenuse is: 5.1478150704935 pimento[week02]$ pimento[week02]$ python3 Python 3.5.2 (default, Nov 17 2016, 17:05:23) [GCC 5.4.0 20160609] on linux Type "help", "copyright", "credits" or "license" for more information. >>> >>> s = "swarthmore" >>> len(s) 10 >>> empty = "" >>> len(empty) 0 >>> my_char = "s" >>> len(my_char) 1 >>> s 'swarthmore' >>> c = "college" >>> s+c 'swarthmorecollege' >>> s+" "+c 'swarthmore college' >>> s*2 # string repetition 'swarthmoreswarthmore' >>> s = "swarthmore" >>> s = "swarthmore " >>> s*2 # string repetition 'swarthmore swarthmore ' >>> s - "e" Traceback (most recent call last): File "", line 1, in TypeError: unsupported operand type(s) for -: 'str' and 'str' >>>