Skip to content

Instantly share code, notes, and snippets.

@douglas-vaz
Created March 21, 2013 15:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save douglas-vaz/5214160 to your computer and use it in GitHub Desktop.
Save douglas-vaz/5214160 to your computer and use it in GitHub Desktop.
#!/usr/bin/python3
def whazaa(n):
for i in range(1,n):
if i % 15 == 0:
print('Whazaa')
elif i % 3 == 0:
print('Hip')
elif i % 5 == 0:
print('Hop')
else:
print(i)
print('Enter n')
whazaa(int(input()))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment