Skip to content

Instantly share code, notes, and snippets.

@peterarnott
peterarnott / fizzbuzz.py
Created August 21, 2012 01:38
My FizzBuzz script: Smaller is better, not following best practises! (score 105)
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