๐ In this video, we learn how to create a program in Python that gives suggestions based on different conditions, such as hunger or thirst.
๐ป The program uses if-else statements to check for specific conditions and provide corresponding suggestions.
๐ Examples of single, multiple, and nested if statements are given to illustrate how to implement them in Python.
โญ๏ธ If the variable 'keadaan' is hungry, it will print the word 'lapar'.
๐ If the variable 'keadaan' is changed to hungry, it will print the word 'makan'.
๐ถโโ๏ธ If the variable 'keadaan' is not hungry, it will go for a walk.
๐ The 'if else' statement is used to execute different actions based on different conditions.
๐ When the condition in the 'if' statement is true, the code inside it will be executed.
๐ฝ๏ธ If the condition in the 'if' statement is false, another block of code can be executed using the 'else' statement.
๐ When a condition is true, the computer executes the code inside the 'if' statement.
โ If the condition is false, the code inside the 'else' statement is executed.
๐ The 'if else' statement allows the computer to make decisions and choose between different actions based on the condition's result.
U2 - I Still Havenโt Found What Iโm Looking For | Lirik Terjemahan \ Putri Ariani agt
Fireside Chat at @Gartnervideo Sales Leader & CSO Summit with Zebra and TaskUs leaders!
la MEJOR CรMARA MรVIL del mundo | comparativa
Positivity Resonates: Barbara Fredrickson
Jaw - Hips - Pelvis Connection. Understand about the anatomy and link between jaw and hip tension ๐
The Carnivore Diet: Why I Eat 300g Protein Per Day (step by step guide)