This is not like all the other "Guess the Number" Python tutorials. In this video, I'm showing you how to implement a game where you, the user, guesses the computer's secret random number. BUT I'm also showing you how to implement a game where the computer is trying to guess YOUR secret number.
All the concepts you need to know in this video have been covered by the previous Code with Kylie videos (#1-7: • Python for the Complete Beginner | Co... ). These include: if-statements, while loops, and functions.
Code: https://github.com/kying18/guess-the-...
In the first version of the game, where we try to guess the computer's number, we use random in order to get the computer to randomly select a number for us to guess. Then, we use a while loop to gather the user's guess and get clues until the correct number is guessed.
In the second version of the game, where the computer guesses our number. We continuously feed the computer a lower and upper bound, until the computer has figured out our number or randomly guessed it correctly. We do this by gathering user input from terminal and telling the computer whether its guess is too high, low, or correct.
Anyways, have fun with it. Give it a try in quarantine!!
Feel free to leave any questions.
Please consider subscribing if you liked this video: https://www.youtube.com/c/ycubed?sub_...
Thanks for watching everyone!
~~~~~~~~~~~~~~~~~~~~~~~~
Follow me on Instagram: / kylieyying
Follow me on Twitter: / kylieyying
Check out my website: https://www.kylieying.com
Watch video Guess the Number Beginner Python Tutorial | Learning Python for Beginners | Code with Kylie #8 online without registration, duration hours minute second in high quality. This video was added by user Kylie Ying 24 August 2020, don't forget to share it with your friends and acquaintances, it has been viewed on our site 40,028 once and liked it 883 people.