IDNLearn.com provides a platform for sharing and gaining valuable knowledge. Get accurate and detailed answers to your questions from our dedicated community members who are always ready to help.

When you are trying to anticipate user errors, which do you think is better to use—an if else statement or a try except statement? Why? Can you think of a rule that you could follow to determine which you should use?

Sagot :

Answer:

try except

Explanation:

You shouldn't use an if else statement for anticipating user errors since try-except was made for executing statements until encountering an error, while if-else is checking for a condition and if its not met, it will do an else.