[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[pygame] Quick question from newbie



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