00:01
Okay, so this question asks, which of the following numbers might this code generate? so the code is random dot random, one to nine, and the numbers are 0, 10, 11, and 1.
00:15
So right off the bat, i can tell you that the answer is 1, and that's because randint generates a random number between 1 and 9.
00:24
And so let's just give it a try as well.
00:27
So let's just say import random, and then we'll say random dot random.
00:32
And so this is a function.
00:33
It's called random .randant.
00:35
And when we call it, provide a number between the numbers we give it here.
00:45
So let's just see how that actually works.
00:51
Let's say numbers is an empty list...