Skip to content
تعلیم کہانی
  • Home
  • Courses
  • Blog Articles
  • Login
  • Toggle website search
Menu Close
  • Home
  • Courses
  • Blog Articles
  • Login
  • Toggle website search

Introduction to Python

  1. Home>
  2. Courses>
  3. Introduction to Python
  • Home
  • Courses
  • Freelancing
  • Introduction to Python

Introduction to Python

Curriculum

  • 2 Sections
  • 26 Lessons
  • 10 Weeks
Expand all sectionsCollapse all sections
  • Week 1
    10
    • 1.1
      Introduction to Python – Part A
      15 Minutes
    • 1.2
      Introduction to Python – Part B
      12 Minutes
    • 1.3
      Setting Up Visual Studio Code for Python Programming and Debugging
      6 Minutes
    • 1.4
      Running Your First Program in Python and Debugging
      9 Minutes
    • 1.5
      Taking Input from the User and Utilizing it
      8 Minutes
    • 1.6
      Cleaning User Input Using ‘Methods’ of Strings
      6 Minutes
    • 1.7
      Good Coding Practices
      14 Minutes
    • 1.8
      Positional and Named Parameters in Python
      9 Minutes
    • 1.9
      Joining String Together
      4 Minutes
    • 1.10
      Assignments for Week 1
      60 Minutes
  • Week 2
    16
    • 2.0
      Manipulating Strings in Python
      14 Minutes
    • 2.1
      Splitting Text and String Expressions in Python
      6 Minutes
    • 2.2
      Data Types for Numbers in Python
      14 Minutes
    • 2.3
      Mathematical Expressions and Operators in Python
      9 Minutes
    • 2.4
      Defining a Custom Function in Python
      14 Minutes
    • 2.5
      How to Get a Return Value from a Function in Python
      12 Minutes
    • 2.6
      Conditional Statements – If, Elif and Else in Python
      10 Minutes
    • 2.7
      Multiple Comparisons using If
      9 Minutes
    • 2.8
      Determine if a Number is Odd or Even in Python
      9 Minutes
    • 2.9
      Match – Case in Python
      8 Minutes
    • 2.10
      Assignments for Week 2
      90 Minutes
    • 2.11
      While Loop In Python
    • 2.12
      For Loops in Python
    • 2.13
      Print Text Multiple Times in Python
    • 2.14
      Infinite Loop Using While, Continue and Break Statements
    • 2.15
      Detailed Look at Lists in Python

Multiple Comparisons using If

17 Multiple Comparisons using If statement

 

In this Python tutorial, delve into the intricacies of conditional statements and learn to create a grade calculation program from scratch. Explore the use of logical operators such as ==, >, <, >=, and <= to compare values and combine conditions using and, or for more sophisticated checks. Discover optimization techniques to streamline your code for better readability and efficiency, emphasizing the benefits of using elif statements over multiple if statements.

Follow practical examples and live coding sessions that illustrate how to implement these concepts effectively. Learn to handle diverse input scenarios in your grade calculation program, assigning grades (A+, A, B, C, D) based on predefined score ranges. By the end of this tutorial, you’ll have a solid grasp of Python’s conditional statements, enabling you to write structured and responsive code for various programming challenges.

Conditional Statements – If, Elif and Else in Python
Prev
Determine if a Number is Odd or Even in Python
Next
Copyright 2025 - TaleemKahani.com

Modal title

Main Content