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

CS50P Week 4 psets "Guessing Game" and "Bitcoin Price Index" fail to exit if using main() function without if __name__ footer #211

Open
Makaze opened this issue Dec 4, 2023 · 0 comments
Labels
CS50P CS50 Python

Comments

@Makaze
Copy link

Makaze commented Dec 4, 2023

The check50 for game.py runs into a timeout error if the user provided a main() function but did not include the if __name__ == "__main__": block before the main() call. Functions that run at the base level without defining main() can pass check50 without problems.

I think this should be noted in the pset page to avoid confusion.

@Makaze Makaze changed the title CS50P Week 4 pset "Guessing Game" fails to exit if using main() function without if __name__ footer CS50P Week 4 psets "Guessing Game" and "Bitcoin Price Index" fail to exit if using main() function without if __name__ footer Dec 18, 2023
@rongxin-liu rongxin-liu added the CS50P CS50 Python label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CS50P CS50 Python
Projects
None yet
Development

No branches or pull requests

2 participants