Introduction to Python
Chapter 21 – while Repetition Structure Authors Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab Supporting Material Download Supporting Material (Code): here Repetition Structure Repetition Structure Definition A Repetition Structure (a.k.a. Loop) is a feature of Python Programming Language that is used to perform Repetitive Python Programming Tasks Purpose The main purpose of Repetition Structure […]
Introduction to Python
Chapter 19 – Nested Selection Structures Authors Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab Supporting Material Download Supporting Material (Code): here Nested IF in Python Nested IF Definition if statements inside if statements, this is called nested if statements Purpose The main purpose of Nested if statements are often used when you must test […]
Introduction to Python
Chapter 18 – if-elif Selection Structure Authors Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab Supporting Material Download Supporting Material (Code): here IF – ELIF Statement in Python Elif Statement Definition The elif is short for else if. It allows us to check for multiple expressions. If the condition for if is False, it checks […]