@cromwellryan/

fizzbuzz

Python

No description

fork
loading
Files
  • main.py
main.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
def printable(number):
  if (number % 3) == (number %5) == 0:
  	return 'FizzBuzz';
  elif (number % 3) == 0:
  	return 'Fizz';
  elif (number % 5) == 0:
  	return 'Buzz';
  else:
  	return str(number);
  		

for number in range(1, 100):
	print(printable(number));