Free Online Courses, Classes and Tutorials

Python Programming - Working with Complex Decisions and Events

Join 3,968 other students
Python Programming - Working with Complex Decisions and Events
  • Description
  • Outcome
  • Certification
  • Learn about creating and using if statements, and checking multiple conditions using elif statements by studying the course Python Programming - Working with Complex Decisions and Events. You will also learn about creating and using for loops and while loops, and the mistakes that can happen when creating and using loops.

    The course begins by introducing you to if statements which are used to check conditions and make decisions with your code. You will learn about the constraints when checking your if statements, different ways to write an if statement and using the else statement for when the if statement in not true. You will learn about adding an if statement to check multiple conditions with the elif statement. You will also learn how to order elif and if statements for your code to work correctly, and how to combine conditions with the logic operators and & or.

    Next, you will learn about loops and how to create a for loop. You will learn about nesting loops in loops and using a variable as the condition in the loop. You will learn about accessing the loop values and manually assigning values for each step in the loop.

    Finally, you will learn about creating and constructing while loops. You will learn about how a while loop functions. You will learn the difference between using a for and while loop as well as mistakes that can happen when you use loops in your code.

    This course will be of great interest to those learners who wish to get started in programming and improve their ability to write programs using the Python programming language.

    Prerequisites: You should have completed the previous two courses on programming with Python: 'Programming Concepts with Python' and 'Python Programming - Working with Numbers, Dates and Time'.

  • Having completed this course you will be able to: - Identify an if statement and explain its usefulness in coding. - Describe the constraints used for constructing if statements. - Identify an elif statement and explain its differences to a standard if statement. - Explain the use of logic operators and & or in your if statements. - Describe the use of Loops in your code. - Explain how to import the turtle library for drawing on screen. - Identify the process in constructing a for loop - Describe the use of for loops versus while loops. - Explain the process for constructing a while loop. - Identify issues that can occur when using loops in programming.

  • All Alison courses are free to study. To successfully complete a course you must score 80% or higher in each course assessments. Upon successful completion of a course, you can choose to make your achievement formal by purchasing an official Alison Diploma, Certificate or PDF.

    Having an official Alison document is a great way to celebrate and share your success. It is:

    • Ideal to include with CVs, job applications and portfolios
    • A way to show your ability to learn and achieve high results

Modules List( 5 )

You have received a new notification

Click here to view them all