Created
August 21, 2012 01:38
-
-
Save peterarnott/3410420 to your computer and use it in GitHub Desktop.
My FizzBuzz script: Smaller is better, not following best practises! (score 105)
This file contains hidden or 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
n = input("Number Play To: "); i=0 | |
while i < n: | |
s=''; i+=1 | |
if i%3==0: s+='fizz' | |
if i%5==0: s+='buzz' | |
if s: print s | |
else: print i |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment