OK. So let us begin.
And the first thing we're gonna do is we're gonna create the user interface
that would allow the user to choose from the register login and exit options. OK? So
let's call this function the main function. OK? So I'm gonna say, define main
brackets, colon.
And now let us say while true.
OK. So as long as the program is running,
let us display the menu options. So
I'm going to say first of all prints
and we can say number one.
Uh let me add my coats right there.
So I'm gonna say option number one dot register.
Ok.
Let's close the colon
and then let's print out option number two
to dot log in.
And then option number three very, very, very boring option
simply are exits.
OK?
All right. Actually, you know what, let's print out
one other statement at the very top kind of like a welcome message.
So let's print, let's say welcome
to the
uh user
registration
uh system.
OK?
And there you go. All right. So we've got the options all laid out.
Now let us prompt the user to provide us with
an option, which particular option would they want to go for?
I'm gonna call the variable choice to store
the particular option.
So I'm gonna say input and then let us say,
what would you like to do?
Ok.
And there it is. All right.
So once the user has provided their option,
we need to create scenarios that cater to each one of them.
So
I'm going to start off with the very first one in here and say
if our choice equals option number one,
we are going to print,
let's say registration,
uh registration
uh selected.
OK? Now, obviously nothing else is gonna happen for now, we will add
the actual functionality later,
but let's move on to the next option. So I will say
if
choice equals
and then option number two, let's add a colon.
So what's gonna happen in here? We can say print
and then we can say uh
log in
selected.
OK?
And now let us add option number three,
if choice
equals
option number three, add a colon,
we can just say print and
exit in
the system.
OK?
And I think this should be fine. So
remember that we also need to add the break statement
should in case the user decides to choose an option
that doesn't exist.
So I'm going to come in and say break and now
break,
enter,
add a colon
and now we can print,
let's say
uh invalid
choice. Please try again. OK? I like this
invalid choice please try again
and there it is. Ok. So
let us go ahead right now to run the program.
So I'm gonna say main and now
brackets
and let's see what will happen. Let's go ahead and run the program
and there you go. Ok, let's try. Option number one.
Ok. We're just selected, option number two,
login selected option number three exit in the system. Ok.
So far so good. We've added the first component of our program.
We have added the user interface. So join
in the next video where we will not begin to tackle
each option at a time starting with the registration function.