Inspiration

What it does

generates a random number and if it is certain numbers then it runs a command

How I built it

Python

Challenges I ran into

running the code

Code

import random

print(random.randint(1, 10))

def fizz_buzz(num):

for x in range(1,num+1): if x % 3 == 0 and x % 5 == 0: print('FizzBuzz') elif x % 3 == 0: print('Fizz') elif x % 5 == 0: print('Buzz') else: print(x)

Built With

Share this project:

Updates