00:01
Okay, so in this question, we want to write a python code to display all numbers in range 60 to 50, 50 to 60 using a four loop, and we want to exclude 50 and 65 in input.
00:17
So that part's a bit unclear to me.
00:22
Maybe there's a typo.
00:23
I'm not sure why we would want to exclude 65 from the range 50 to 60.
00:30
I'm going to give you a few options and hopefully you can answer properly.
00:41
So first how do range work in python? how do four loops work in python? well, four loops, you need to write four and they end with a colon and you need to put some values in the middle.
01:03
So here is enter some code here.
01:15
So this would be a valid way to write a for loop as long as this is proper code.
01:24
Now the first thing we need is how do we display code, how do we display things in python? well it's with the print function.
01:33
So if i print, for example, five and i run this, as you can see, the output of this program will be five.
01:42
And if i print a 5 plus 5 and i run this program, i have 10.
01:49
The way to display things is with the print function.
01:52
So we know that in our 4 loop, we are going to print something.
02:02
So print number.
02:09
Where did the number come from? well, the number will come from a range.
02:17
So range, 50, so that's the beginning of our range, 60, that's the end of our range, and that is the increment.
02:33
So we're going to go from 50 to 60 using steps of 1.
02:40
So if i run this, as you can see, i have 50, 51, 52, 53, 54, 55, 56, 57, 58 and 59.
02:55
This stops at 59...