[Python] If statement
In this chapter we're going to learn if statement, this function is very useful.
I'm going to create Boolean variable(True or False) that's going to store whether or not the user is male
Let's say is_male = True; means male is True, The other is False
so if it's the True, python is going to print "You are a man" and if it's not male, python prints nothing
If you want to print something even if it's not true, you can make like this;
then it will print "you are not a man" instead of nothing printed.
let me make it more complex
now we made two Boolean variables, so if it's male or tall or both, it will print "You are a man or tall or both" . Otherwise, "You neither man or tall"
"elif" it stands for "Else If", you can make other conditions inside.
I made more conditions. This time male is True, tall is False. So we're going to get
"You a short man"
what if;
Yes. You are not a man but tall