I am creating a fizzbuzz game and i would like to create a function that allows the user to input a new rule into the code when it reaches 21. If anyone has any solutions i would be very grateful. Btw I am a year 10 student so a simple solution would be preferred but it's ok if it is complicated
This is my current code
count = 0
while count <= 21:
if count %3==0 and count%5==0:
print("FizzBuzz")
elif count %3==0:
print("Fizz")
elif count %5==0:
print("Buzz")
else:
print(count)
count=count+1