x = 8 y = 3 z = 2.0 a = "Duke" b="CoolColors" 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' a = 5 b = 4 print b 4 a = a+b print a 9 c = "fred" print c fred print type(c) print type(a) print a + c 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 a + c TypeError: unsupported operand type(s) for +: 'int' and 'str' print a*c fredfredfredfredfredfredfredfredfred print a + b * 3 21 print (a+b)*3 39 print a/b 2 print a/(b*1.0) 2.25