Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

fizz buzz python

fizz = 3
buzz = 5
fizzbuzz = fizz * buzz

for i in range(100):
  if i % fizzbuzz == o:
    print('fizzbuzz')
   elif i % fizz == 0:
    print('fizz')
   elif i % buzz == 0: 
    print('buzz')
   else:
    print(i)
 
PREVIOUS NEXT
Tagged: #fizz #buzz #python
ADD COMMENT
Topic
Name
1+9 =