Section Overview
In this section of the Python 3 Fundamentals course, we will be covering three important concepts: if statements, switch statements, and try, except.
If statements allow us to make decisions in our code by evaluating a specific condition. For example, we can use an if statement to check if a number is positive or negative, and then execute different code based on the result of that evaluation.
Try, except is a way to handle errors in our code. When we use try, except, we try to execute a specific block of code, and if there is an error, we can catch it and handle it gracefully. This is useful for ensuring that our code doesn't crash when something goes wrong.
In the assignment for this section, we will be creating a simple game of rock, paper, scissors using if statements and try, except. This will give us a chance to practice using these concepts in a real-world scenario.
No comments yet. Add the first comment to start the discussion.