Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem in pset 1, meal.py #3

Open
usergeneratedrandomness opened this issue Jan 25, 2024 · 1 comment
Open

Problem in pset 1, meal.py #3

usergeneratedrandomness opened this issue Jan 25, 2024 · 1 comment

Comments

@usergeneratedrandomness

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.

@aviiciii
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants