If I had this:
def print_i(i):
if i == range(1, 9):
print "It worked!"
else:
print "Bummer!"print_i(6) Why would I get Bummer! every time? Am I misusing range()? Thanks, globalp
If I had this:
def print_i(i):
if i == range(1, 9):
print "It worked!"
else:
print "Bummer!"print_i(6) Why would I get Bummer! every time? Am I misusing range()? Thanks, globalp