Hey, guys.
Welcome back to 100 Days of Code.
Today is Day 4 and we're going to be focusing on randomization in Python,
and we're going to be learning about Python lists.
Now randomization in any sort of programming language is really, really useful because if we want to
create a game, if we want our program to do something different each time, then we need to introduce
a little bit of randomness, right?
So we're going to be looking at using the random module in order to achieve this,
and by the end of today, you will have learned enough to be able to build this Rock Paper Scissors
game.
So it starts out asking you, the user "Type 0 for rock, 1 for paper, or 2 for scissors."
So I'm going to go for 0 for Rock,
and it shows me using ASCII art that this is what I chose, Rock.
And then the computer chose Scissors, and Rock beat Scissors, so I win.
Now you can run this as many times as you want.
If I choose Paper and the computer chooses Rock, then I win.
If I choose Paper and the computer chooses Paper, then it's a draw.
But if I choose Paper and the computer chooses Scissors, then I lose.
So this is a pretty simple game, but we're going to get the computer to play this game with us, and
we're going to do that by learning about Randomization, Lists, and a whole lot more.
I hope you're ready,
and once you are, then head over to the next lesson and let's get started.