fizzbuzz python solution
for number in range(1, 101):
if number % 3 == 0 and number % 5 == 0:
print("FizzBuzz")
if number % 3 == 0:
print("Fizz")
if number % 5 == 0:
print("Buzz")
else:
print([number])
fizzbuzz python solution
for number in range(1, 101):
if number % 3 == 0 and number % 5 == 0:
print("FizzBuzz")
if number % 3 == 0:
print("Fizz")
if number % 5 == 0:
print("Buzz")
else:
print([number])
how to make fizzbuzz in python
for x in range(100):
output = ""
if x % 3 == 0:
output += "Fizz"
if x % 5 == 0:
output += "Buzz"
print(output)
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us