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)
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)
fizzbuzz in python
def fizzBuzz(size):
for i in range(size - (size -1), size + 1):
localResult = "fizz" if not i % 3 else ""
localResult = localResult + "buzz" if not i % 5 else localResult
localResult = str(i) if localResult == "" else localResult
print(localResult)
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