00:01
Okay, so this question says, we're going to make a rock paper, scissors game, scissors can cut paper, blah, blah, blah, we know the game.
00:09
The program generates zero one or two, which represents the three possibilities.
00:14
It prompts the user to enter a zero one or two and displays a message indicating whether the user or the computer wins, loses, or draws.
00:24
Let's start off by importing random, a library that can make random numbers.
00:32
And my personal choice would be either random or numpi.
00:36
So let's just import random.
00:40
And let's try this function, random.
00:43
Random .randint.
00:45
And i believe that the syntax for this is it will generate a number between these numbers.
00:53
You can see if i run it over and over, it's giving ones, twos and zeros.
00:58
And so there we already have essentially what we need for this.
01:03
So we're going to say computer turn equals computer turn equals random dot random and it doesn't matter what that is but next we're going to say user input equals int because we want this to be the same as the computers type and we're going to get input choose choose one to or choose zero one or two rock paper or rock paper or scissors...