00:01
Hello, welcome to this lesson.
00:02
In this lesson, we'll keep receiving user input with python programming language until user enters capital or small y, capital or small n.
00:15
So the first thing let's have a response variable.
00:20
So response equals to the empty length of empty string.
00:26
And now let's have a sentinel.
00:29
So the sentinel is what user will enter so that we quit.
00:34
And let's let it be a capital y or small n.
00:39
Okay, so here we can use a while to say why the response the user enters, let's convert it to lowercase.
00:53
So why response lower is not why the lower not in all right, sentinel.
01:11
So whilst what they have entered is not part of the y or n will keep on letting them right.
01:20
So he will say that the response is equals to would remove the input and say, enter your response or enter the response or why to quit.
01:47
Alright...