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 is 8 21/40 as a fraction or mixed number as a decimal
What is the chemical formula for aluminum sulfite?
Why do you you think Congress became the strongest branch of the government in 1880s
how do you simplify this expression 4x+2(5+3x)
changing an infinite decimal to a fraction.577777
Nativists views of new immigrants were inaccurate because they overlooked the fact that America had been built by immigrants. True or False?
How many times does 70 go into 618
Infectious disease can be spread by which of the following?A. foodb.waterc.foodD.alll of the above
true or false?Dynamics in music refers to the loudness or softness of a note, as well as the quality of the note as played.
A lunar month has 28 days. About how many lunar months are in a year 365 days?