00:01
Okay, in this problem, we want to print out a whole bunch of ascii characters, and i'm going to start off using a four loop.
00:09
I'm just going to use the value x in range.
00:13
And if you look up the ascii characters that we're looking for, the exclamation point is 33, and the tilde is 126.
00:24
And so i want to use 127 there again.
00:26
Range never reaches this last number.
00:30
It always falls one short of it.
00:33
And so i need to keep track of a couple things.
00:39
Let's just actually do a print right there.
00:43
I'm going to say print chr turns an integer into a character value.
00:51
So if i just say print x, this isn't what we want yet, but we can see we get all the values from exclamation point through the tilde.
01:02
And so now we need to just collate them a little bit.
01:06
So let's get rid of that.
01:09
We will use this chr here in a second.
01:14
So what we want to do is we want to build a string.
01:19
And i'm just going to call it a character string and set it equal to an empty character string.
01:30
And i want to say when i'm going to say car string i'm going to add the character i just found to it and then we want to separate everything with a blank space and so i put a blank space between behind it so now if i was to print the car string i would get a continuous string of all the values that are in that range...