79107403

Date: 2024-10-20 15:28:49
Score: 1.5
Natty:
Report link

I didn't watch the video but the one thing I noticed in your code is how you handle the data from the input in the first function. When you get the number of fractions from input(), it’s coming in as a string, so that’s why the loop isn’t working right. You need to convert it to an integer, otherwise, the while loop gets confused because you're comparing a string to a number, which won’t work properly.

fractions = int(fractions)

Reasons:
  • No code block (0.5):
  • Low reputation (1):
Posted by: Kazber