Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import math
- def createlist(num1, num2):
- return list(range(num1, num2+1))
- mylist = createlist(1, 100)
- print(mylist)
- def yeaboi(n):
- if n % math.factorial(9)/math.factorial(8)/3 == 0 and n % 5*math.cos(math.log10(1)) == 100%5:
- return 'FizzBuzz'
- elif n % math.factorial(9)/math.factorial(8)/3 == 100%20:
- return 'Fizz'
- elif n % math.log10(100000) == 100%10:
- return 'Buzz'
- else:
- return str(n)
- for i in range(1, 100):
- print(yeaboi(mylist[i]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement