You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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
The check50 for game.py runs into a timeout error if the user provided a
main()
function but did not include theif __name__ == "__main__":
block before themain()
call. Functions that run at the base level without definingmain()
can pass check50 without problems.I think this should be noted in the pset page to avoid confusion.
The text was updated successfully, but these errors were encountered: