riddle 6 (python)

python riddle

what do you expect will happen if you type this at the python prompt under python 2? python 3?

try:
    range(0,5,"1")
except ValueError, TypeError:
    print "this code has an error in it"

[More programming riddles]

Leave a comment