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 does Buddha mean?
What is -7 8/45 as a decimal?
how to solve for b in this equation: A=1/2h X b+c
describe and correct the error in solving this equation -2(7-y)+4=-4 -14-2y+4=-4 -10-2y=-4 -2y=6 y=-3 please show work I don't know how to get the answer
At a highway speeds, a particular automotive is capable of of an acceleration of about 1.6m/s^2. At this rate how long does it take to accelerate from 80km/h to
What are two equivalent fractions for 9/15
please solve: √-0.25
How do I solve the square root of 30?
which of the following word is applied to people who live on very little money, but who are NOT victims of abject poverty? A: penury B: indigence C: destitutio
find three consecutive intgers whose sum is 171