00:01
Okay, this question says, random program writes a series of random numbers to the file.
00:06
Each random number should be in the range of 1 to 500, but these are specified how many random numbers the file will store.
00:14
One comment, variable, try, accept, etc, tc.
00:18
Okay, so let's start off by saying, any random.
00:23
So that's a comment, so we're going to import random.
00:28
Then what we're going to do is we're going to say get input from user.
00:34
We're going to say n is equal to int input how many random variables do you want.
00:45
Next we're going to say 4i in range n.
00:50
So we're going to do this this many times.
00:53
We're going to say, and what we're going to do is we're going to make a string.
00:57
So my string is going to be equal to this.
01:02
So zip through n times and pick a random number added to our string.
01:12
So let's say random.
01:14
.
01:14
.
01:16
.
01:16
And 1, sorry, and 501.
01:22
And we're going to say my string plus equals this as a string plus new line...