
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Explore flow control in Python through hands-on coding exercises that cover fundamental topics, with short video clips explaining specific solutions and inviting feedback to improve future content.
Define a function that returns 'even' when a number is divisible by two and 'odd' otherwise, using the residual when dividing by two to check parity and show the result.
Implement a Python function that uses an if statement to return 'zero', 'positive', or 'negative' based on the input number. Test it with -12, 23, and 0 to verify outputs.
Explain how to implement a function that returns the larger of two numbers, returning the second if they are equal, with example calls showing correct results.
Implement a python function that takes three numbers and returns true if they can form a triangle, otherwise returns false, by verifying all pair sums exceed the third.
Implement the absolute function by negating negative numbers and returning the result, then validate with -4, 12, and 0 to confirm correct absolute values.
Implement a function that sums all numbers between two positive distinct inputs, including endpoints, using a simple loop with clear comments. Test with 1–3 equals 6 and 2–5 equals 14.
Learn to implement a factorial function in Python using a loop that multiplies a given number down to one, with the result initialized to one, handling zero and one.
Implement a function that sums a list of numbers using a for loop, accumulating the total. Verify with examples like [1,2,3] → 6, [5,8,2] → 15, and [] → 0.
Find solutions for every coding exercise this course includes, and request a video with more explanation if you need one.
Take this course and improve your procedural programming skills in Python, and especially in its flow control possibilities. Acquire the very basic understanding many tend to skip. Set the foundation for moving forward while having a solid base. Acquire practical experience through extensive practice. Catch up with the very basic Python capabilities in procedural programming, that you weren't familiar with. Take your Python programming skills to the next level. Polish your understanding by watching video clips that explain the solutions for selected coding exercises.
Learn and Master The Flow Control Statements in Python!
Learn about the if and the if-else statements in Python
Learn how to create loops using the while statement
Learn how to create loops using the for statement
Take Your Python Programming Skills to The Next Level!
This course includes multiple coding exercises organized in separate sub-topics. This course includes solutions for all coding exercises. Selected coding exercises have video clips that explain their solutions. Make sure you already have a basic understanding of using the flow control in Python before taking this course.
While completing the coding exercises this course includes, we will be more than happy to get your feedback and requests per those specific coding exercises for which you would like us to prepare video clips that explain them.
This course includes more than 10 coding exercises. When taking this course feel free to let us know in which sub-topic you would like to have more coding exercises and we will a special effort to develop these exercises.