π 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.
γηΎζΏεΊεθ¦ιιοΌCNNθ«·"ιε¨ζηη‘οΌ"γηΎιοΌδ»£εΉζε²δΈζζ οΌγγι’η·ηΎεηΎγ20230921-7βιε‘貑ηΆζ°θβ
Collars & Co Owner Refuses To Back Down In Negotions With The Sharks | Shark Tank US
Litio: Por quΓ© Argentina tiene que hacer algo YA
How to Get the Most Out of Studying: Part 2 of 5, "What Students Should Know About How People Learn"
SBF Is Going to Jail For A Long Time
μ§μμ νλ°°κ·Ό ν€μ°κΈ°