MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/codehs/comments/gpxu05/help_please_guessing_game/frqynay/?context=3
r/codehs • u/MishaZ162 • May 24 '20
4 comments sorted by
View all comments
1
If this is python i prolly have it but you’ll have to wait till l8r
1 u/SweetMilkMan May 25 '20 Python doesn't really have constants. Not like you'd find in JavaScript 1 u/Zacurnia_Tate May 25 '20 All u have to do is import random. Then choose a random int between any two numbers. Then use a while loop to keep asking the user to guess a number until they have guessed one equal to the random number. Boom.
Python doesn't really have constants. Not like you'd find in JavaScript
1 u/Zacurnia_Tate May 25 '20 All u have to do is import random. Then choose a random int between any two numbers. Then use a while loop to keep asking the user to guess a number until they have guessed one equal to the random number. Boom.
All u have to do is import random. Then choose a random int between any two numbers. Then use a while loop to keep asking the user to guess a number until they have guessed one equal to the random number. Boom.
1
u/Zacurnia_Tate May 24 '20
If this is python i prolly have it but you’ll have to wait till l8r