Permalink
Browse files

Revised code

  • Loading branch information...
1 parent 3c35711 commit 3c74f76d14b1fa7a68d2696e733bc34598acbdb7 @PillarDev-Design committed Oct 9, 2012
Showing with 4 additions and 4 deletions.
  1. +4 −4 FizzBuzz.py
View
@@ -3,12 +3,12 @@
# Function to print (Strictly just a formatting idea)
def print_x(number, word):
- if (number < 10):
- print '(00%s) %s' % (number, word)
- if (number < 100):
- print '(0%s) %s' % (number, word)
if (number == 100):
print '(%s) %s' % (number, word)
+ elif (number < 10):
+ print '(00%s) %s' % (number, word)
+ elif (number < 100):
+ print '(0%s) %s' % (number, word)
# Loop Until 100
while x < 101:

0 comments on commit 3c74f76

Please sign in to comment.