Question: *PLEASE HELP (This is a Python 3.8 Question)* You already know how to plan for and handle errors before they happen. You know how to

*PLEASE HELP (This is a Python 3.8 Question)*

You already know how to plan for and handle errors before they happen. You know how to create and use lists. You know how to use loops. You are going to put these abilities to work in this project. You are going to write a program to help young children with their arithmetic skills.

Objectives

  • Plan and create a program to practice math facts with error handling.

Your Goal

Your users are young children learning their arithmetic facts. The program will give them a choice of practicing adding or multiplying.

You will use two lists of numbers.

numA = [4, 1, 6, 10, 2, 3, 7, 9, 11, 12, 5, 8]

numB = [2, 12, 10, 11, 1, 3, 7, 9, 4, 8, 5, 6]

If the user chooses adding, you will ask them to add the first number from each list. Tell them if they are right or wrong. If they are wrong, tell them the correct answer. Then ask them to add the second number in each list and so on.

If the user chooses multiplying, then do similar steps but with multiplying.

Whichever operation the user chooses, they will answer 12 questions.

Write your program and test it on a sibling, friend, or fellow student.

Errors

Think about the types of errors a user can make. Add at least one kind of error handling to your program.

_______________

NOTE: This is what I have so far, please help me correct it:

*PLEASE HELP (This is a Python 3.8 Question)* You already know how

1 2 3 4 5 6 7 8 9 10 11 12 13 multiply= str("multiply" or "Multiply" or "Multiplication" or "multiplication") adition= str("addition" or "Addition" or "Add" or "add") multiply_or_add=input("Would you like to do multiplication or addition problems? (type in the word): ") if multiply_or_add == multiply: for numA in [4, 1, 6, 10, 2, 3, 7, 9, 11, 12, 5, 8]: for numb in [2, 12, 10, 11, 1, 3, 7, 9, 4, 8, 5, 6]: try: print("Question: What is ", numa, ", numB,"?") answer=int(input(str("your answer: "))) if answer == numA*numB: print("You are correct") else: print("Sorry, the correct answer is "+str(numA*numb)) break except ValueError: print("Sorry, you need to enter a word.") print("Question: What is ", numA, numB,"?") answer-int(input(str("your answer: "))) if answer numA*numB: print("You are correct") else: print("Sorry, the correct answer is "+str(numA*numb)) break 14 * 15 16 17 18 19 20 21 22 23 = 24

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!