Created
February 12, 2017 11:10
-
-
Save kothiba/2abfe8fab2b54edb8f88910a9545d2bf to your computer and use it in GitHub Desktop.
I wrote FizzBuzz in Python
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
for i in range(1,31): | |
if i % 15 == 0: | |
print 'FizzBuzz' | |
elif i % 3 == 0: | |
print 'Fizz' | |
elif i % 5 == 0: | |
print 'Buzz' | |
else: | |
print i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment