Hey there! This tutorial is about dealing with conditions and decision making using if-elif-else keywords in Python. I recommend watching the video for the basics and then proceed.
Now, let's try the if statements on strings.
Say for example we have a string variable food.
If the variable food is noodles, we'll print "Chinese food" and if it is not, we'll print, "not Chinese food". Before heading into the solution down below, try it yourself on your IDE.
So, this is all fairly simple. One last thing I will leave you with is how to use it on lists.
Say you have a list of names of students who are present (present) and a variable called "name" which has the name of a certain student, Marcus. We want to check if Marcus is there in the list of present students or not.
So, hopefully, now you understand how to use conditions in if-elif-else and deal with decision making. If you have any doubts, feel free to comment them in the comments section in YouTube and as always, you can send us an email and we'll be sure to get back to you. That's everything for today.
Cya!