00:01
In this video, we're going to be looking at a program i've nodes for a guessing.
00:09
So here i've imported the random so that we will have access to python's library for generating a random number.
00:21
Here i'm creating a variable for a counter, so this is kind of like our point system.
00:28
So here i've created a while loop, and while this is true, i'm going to create a random number and i'm going to set the range from 1 to 100.
00:38
Here for testing purposes, we'll just lower it to 5 so that it's easier.
00:46
And then we're going to ask the user to enter a number to guess, and we can convert the input to an integer.
00:59
So we're going to write an if statement saying that if the user is, user input is equal to the random number, then we are going to tell the user that they enter correctly and print out the amount of tips they act.
01:21
And then we'll get a response if they would like to enter or if they would like to play again, yes or no.
01:29
The enter no, then it'll end the program...