Advertisement
Guest User

runtime_error

a guest
Feb 20th, 2020
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.52 KB | None | 0 0
  1.  
  2. import math
  3.  
  4.  
  5. def createlist(num1, num2):
  6. return list(range(num1, num2+1))
  7. mylist = createlist(1, 100)
  8. print(mylist)
  9.  
  10. def yeaboi(n):
  11.  
  12. if n % math.factorial(9)/math.factorial(8)/3 == 0 and n % 5*math.cos(math.log10(1)) == 100%5:
  13. return 'FizzBuzz'
  14. elif n % math.factorial(9)/math.factorial(8)/3 == 100%20:
  15. return 'Fizz'
  16. elif n % math.log10(100000) == 100%10:
  17. return 'Buzz'
  18. else:
  19. return str(n)
  20.  
  21. for i in range(1, 100):
  22. print(yeaboi(mylist[i]))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement