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

430% as a completely reduced mixed number
What is the percentage by volume of hydrogen peroxide in typical first aid kits?
Tasha believes that she can rewrite the difference 120 - 36 as a product of the GCF of the two numbers and another difference. Is she correct? Explain your answ
Plz Help me with this math problem
How do the potential energy and the kinetic energy change as the skater moves from the top of the U-shaped ramp to the bottom?
When cadmium sulfide is treated with sulfuric acid, fumes of hydrogen sulfide are given off. express your answers as chemical formulas separated by commas?
What is the difference between 36.92 and 4.218?
The reaction of sodium and chlorine to form salt is best described as an?
Please help me! For which I do not understand how to do this..
Were japanese soldiers who returned after the war dishonored