Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
David Kociper
6,568 PointsWhy isnt this workin in Fizz and Buzz challange
name = input("Please enter your name: ") number = input("Please enter a number: ")
number = int(number)
print("Hello {}! The number {}...".format(name,number))
is_fizz = number % 3 == 0 is_buzz = number % 5 == 0
if is_fizz and is_buzz: print("is a FizzBuzz number") elif is_fizz: print("is a Fizz number") elif is_buzz: print("is Buzz number") else: print("is neither a Fizzy or buzzy number")
1 Answer
David Kociper
6,568 PointsOk i have found the mistake... too bad the workspaces dont put functions as it should when you move to the new line.