Seudónimo Seudónimo
  • 24-01-2021
  • Computers and Technology
contestada

how would i change this:
" try:
userChoice = input("Would you like to Add or Multipy?(A/M): ")
except:
print("Please enter 'A' or 'M'") "

so it only allows me to put "A" or "M" so that it runs the except part

Respuesta :

Cytokine
Cytokine Cytokine
  • 24-01-2021

You wouldnt use a try and except statement. Use a loop.

Ver imagen Cytokine
Answer Link

Otras preguntas

What attitude did the people of the United States share after the American Revolution?
true or false the variouse regions of greece were separated by rivers
what addition doubles fact can help you solve 4+5? explain how you know
Which Is bigger 2460cm or 0.024km
14-(2x+5)=-2x+9 [help?]
How do the mitochondria and vaculoe work together?
mr  zuro finds the man height of all 14 students in his statistics class to be 68 inches .just as mr zuro finishes explaining how to get the mean .Danielle walk
Is a meat eater a herbivore or a carnivore
What are the two types of democracies?
Write the prime factorization of 30. Order the factors from least to greatest (for example, 2 × 2 × 3 × 5).