x = 8 y = 3 z = 2.0 a = "Duke" b="CoolColors" print x 8 print type(x) print type(b) print x/y*z 4.0 print a*y DukeDukeDuke print y*a DukeDukeDuke print b-"o" Traceback (most recent call last): File "C:\Users\Susan\AppData\Local\Enthought\Canopy\App\appdata\canopy-2.1.3.3542.win-x86_64\lib\site-packages\IPython\core\interactiveshell.py", line 2885, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in print b-"o" TypeError: unsupported operand type(s) for -: 'str' and 'str' c = "fred" print c fred print type(c) a = 9 b = 4 print a + b * 3 21 print (a+b)*3 39 print a/b 2 print a/(b*1.0) 2.25 c = fred Traceback (most recent call last): File "C:\Users\Susan\AppData\Local\Enthought\Canopy\App\appdata\canopy-2.1.3.3542.win-x86_64\lib\site-packages\IPython\core\interactiveshell.py", line 2885, in run_code exec(code_obj, self.user_global_ns, self.user_ns) File "", line 1, in c = fred NameError: name 'fred' is not defined c = 3