Tutorial by Examples

Consider the following Python2.x code. Save the file as example.py Python 2.x2.0 def greet(name): print "Hello, {0}!".format(name) print "What's your name?" name = raw_input() greet(name) In the above file, there are several incompatible lines. The raw_input() meth...

Page 1 of 1