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 enrol, study and complete. To successfully complete this Certificate course and become an Alison Graduate, you need to achieve 80% or higher in each course assessment. Once you have completed this Certificate course, you have the option to acquire official Certification, which is a great way to share your achievement with the world. Your Alison Certification is:
Ideal for sharing with potential employers - include it in your CV, professional social media profiles and job applications
An indication of your commitment to continuously learn, upskill and achieve high results
An incentive for you to continue empowering yourself through lifelong learning
Alison offers 3 types of Certification for completed Certificate courses:
Digital Certificate - a downloadable Certificate in PDF format, immediately available to you when you complete your purchase
Certificate - a physical version of your officially branded and security-marked Certificate, posted to you with FREE shipping
Framed Certificate - a physical version of your officially branded and security-marked Certificate in a stylish frame, posted to you with FREE shipping
All Certification is available to purchase through the Alison Shop. For more information on purchasing Alison Certification, please visit our faqs. If you decide not to purchase your Alison Certification, you can still demonstrate your achievement by sharing your Learner Record or Learner Achievement Verification, both of which are accessible from your Dashboard. For more details on our Certification pricing, please visit our Pricing Page.