Ask coding questions

← Back to all posts
Fizz Buzz
SaharIqbal (0)

I don’t understand why this code won’t run

Comments
hotnewtop
ch1ck3n (1632)
number = int(input("endter your number"))
if number // 3:
	print("fizz")
elif number // 5:
	print("buzz")
elif (number // 3) and (number // 5):
	print("fizz buzz")

here is what I think should work

ch1ck3n (1632)

What is the desired output? What is the problem?