cs50python icon indicating copy to clipboard operation
cs50python copied to clipboard

Problem in pset 1, meal.py

Open usergeneratedrandomness opened this issue 1 year ago • 1 comments

the function convert(time) is supposed to convert inputs like 7:30 to 7.5 but returns 7.05. This is because minutes is divided by 600 essentially converting minuets into seconds. This also fails the check50 cs50/problems/2022/python/meal test. The solution if to divide by 60 in all cases instead of 600.

usergeneratedrandomness avatar Jan 25 '24 06:01 usergeneratedrandomness

@usergeneratedrandomness i believe that either the tests or the assignment has been updated feel free to open a pr to solve the issue.

aviiciii avatar Jun 28 '24 18:06 aviiciii