andy0130tw / fizzbuzz

Automatically exported from code.google.com/p/fizzbuzz
0 stars 0 forks source link

for c in range(1, 101): print(str(c) + (" : Fizz" if c % 3 == 0 else "") + (" : " if c % 3 != 0 and c % 5 == 0 else "") + ("Buzz" if c % 5 == 0 else "") + "\n") #3

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
There, fixed that for you. FizzBuzz in one line of python code.

Original issue reported on code.google.com by kal.zek...@gmail.com on 13 Apr 2013 at 3:50