Python 3.4.1 (v3.4.1:c0e311e010fc, May 18 2014, 00:54:21) [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. >>> >>> input() 21 '21' >>> input("age?") age?21 '21' >>> input("age? ") age? 21 '21' >>> age = input("age? ") age? 21 >>> age '21' >>> age + 1 Traceback (most recent call last): File "", line 1, in age + 1 TypeError: Can't convert 'int' object to str implicitly >>> type(age) >>> age + "1" '211' >>> age = int(input("age? ")) age? 21 >>> age 21 >>> type(age) >>> age + 1 22 >>> age 21 >>> age = age + 1 >>> age 22 >>> name = input("what is your name? ") what is your name? Monica >>> name 'Monica' >>> >>> >>> >>> def = 3 SyntaxError: invalid syntax >>> ================================ RESTART ================================ >>> >>> increment >>> decrement Traceback (most recent call last): File "", line 1, in decrement NameError: name 'decrement' is not defined >>> age = 21 >>> increment(age) Traceback (most recent call last): File "", line 1, in increment(age) File "/Users/monica/Desktop/00_CS2316-2015-summer-Metz/code2.py", line 3, in increment print("the age is " + age) TypeError: Can't convert 'int' object to str implicitly >>> ================================ RESTART ================================ >>> >>> increment(age) Traceback (most recent call last): File "", line 1, in increment(age) NameError: name 'age' is not defined >>> age = 21 >>> increment(age) the age is 22 >>> age 21 >>> x = 6 >>> increment(x) the age is 7 >>> x 6 >>> >>> >>> increment(20) the age is 21 >>> 20 20 >>> age 21 >>> ================================ RESTART ================================ >>> >>> repeatedly("hi") hihihi >>> repeatedly(7) 21 >>> repeatedly("7") 777 >>> repeatedly(7.0) 21.0 >>>