Find the best answers to your questions at Westonci.ca, where experts and enthusiasts provide accurate, reliable information. Get immediate and reliable answers to your questions from a community of experienced professionals on our platform. Our platform provides a seamless experience for finding reliable answers from a network of experienced professionals.

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.

Thank you for visiting. Our goal is to provide the most accurate answers for all your informational needs. Come back soon. We hope this was helpful. Please come back whenever you need more information or answers to your queries. Westonci.ca is here to provide the answers you seek. Return often for more expert solutions.