MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/PythonLearning/comments/1m1cnbe/simple_game_using_python/n3kz3em/?context=3
r/PythonLearning • u/Inevitable-Math14 • Jul 16 '25
37 comments sorted by
View all comments
14
Good practice!
Just a quick note: all caps is conventionally used to denote constants. It won't change the functionality, but your IDE may complain.
You should switch around ai and GUESS, to: AIand guess
ai
GUESS
AI
guess
That way you are signaling that AI is a constant number, and guess is a variable number.
1 u/[deleted] Jul 16 '25 [removed] — view removed comment 1 u/WhiteHeadbanger Jul 17 '25 This is PythonLearning. You can't back off of learning good habits and knowing what's the standard.
1
[removed] — view removed comment
1 u/WhiteHeadbanger Jul 17 '25 This is PythonLearning. You can't back off of learning good habits and knowing what's the standard.
This is PythonLearning. You can't back off of learning good habits and knowing what's the standard.
14
u/WhiteHeadbanger Jul 16 '25
Good practice!
Just a quick note: all caps is conventionally used to denote constants. It won't change the functionality, but your IDE may complain.
You should switch around
aiandGUESS, to:AIandguessThat way you are signaling that
AIis a constant number, andguessis a variable number.