Skip to content

Instantly share code, notes, and snippets.

@Skydrifa
Last active May 2, 2021 17:21
Show Gist options
  • Save Skydrifa/9d09318ded8d441fb9624f1a25e1cdcb to your computer and use it in GitHub Desktop.
Save Skydrifa/9d09318ded8d441fb9624f1a25e1cdcb to your computer and use it in GitHub Desktop.
estranho
# Homework 8.3: FizzBuzz
game_start = int(input("Select a number between 1 and 100: "))
for ciclo_start in range(1, game_start+1):
if ciclo_start % 5 == 0 and ciclo_start % 3 == 0: # resultados
print("fizzbuzz")
elif ciclo_start % 5 == 0:
print("buzz")
elif ciclo_start % 3 == 0:
print("fizz")
else:
print(game_start)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment