Introduction to Python
Chapter 25 – A Step by Step Example to Write Functions I Authors Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab Supporting Material Download Supporting Material (Code): here Solving Programming Tasks using Functions Steps – Solving Programming Tasks using Functions In Sha Allah, we will follow the following Steps to solve the Programming Tasks using […]
Introduction to Python
Chapter 22 – for 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 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 […]
Introduction to Python
Chapter 17 – if-else Selection Structure Authors Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab Supporting Material Download Supporting Material (Code): here IF – ELSE Statement in Python Else Statement Definition else condition can be optionally used to define an alternate block of statements to be executed if the boolean expression in the if condition […]
Introduction to Python
Chapter 16 – if Selection Structure Authors Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab Supporting Material Download Supporting Material (Code): here IF Statement in Python If Statement Definition if statement is an expression that can be evaluated as True or False and is called a conditional test It executes a set of statements conditionally, […]
Introduction to Python
Chapter 9 – Best Coding Practices in Python Authors Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab Supporting Material Tutorial to Download and Install Python: here Quick Recap Quick Recap – Constants in Python In previous Chapter, I presented Algorithm – In Real-world In Real-world, an Algorithm is defined as a well-defined, step-by-step procedure (or […]
Introduction to Python
Chapter 24 – Functions Authors Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab Quick Recap Quick Recap – Break and Continue Statements In previous Chapter, I presented Continue Statement Definition The continue statement causes an immediate jump to the top of a loop. It also sometimes lets you avoid statement nesting Purpose The main purpose […]
Introduction to Python
Chapter 28 – Basics of Data Structures Authors Ms. Samavi Salman Dr. Rao Muhammad Adeel Nawab Quick Recap Quick Recap – Functions in Python In previous Chapter, I presented Function A Function is defined as a piece of Code (or block of Python Statements) to perform a specific Programming Task Python Program A Python Program […]