@anonymous/FickleUniformMolly
Python

No description

repl talk
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Python
def fizzbuzz( x ):
    for i in range( 1, x+1 ):
        div3 = ""
        if ( i % 3 == 0 ):
            div3 = "fizz"
 
        div5 = ""
        if ( i % 5 == 0 ):
            div5 = "buzz"
 
        n = ""
        if ( div3 == "" and div5 == "" ):
            n  = str(i)
 
        print( div3 + div5 + n )
        
fizzbuzz(100)
Python 2.7.10 (default, Jul 14 2015, 19:46:27) [GCC 4.8.2] on linux