menu
Qammunity.org
Login
Register
My account
Edit my Profile
Private messages
My favorites
How would i change this: " try: userChoice = input("Would you like to Add or Multipy?(A/M): ") except: print("Please enter 'A' or 'M'&quo…
Ask a Question
Questions
Unanswered
Tags
Ask a Question
How would i change this: " try: userChoice = input("Would you like to Add or Multipy?(A/M): ") except: print("Please enter 'A' or 'M'&quo…
asked
Sep 15, 2022
49.9k
views
17
votes
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
Computers & Tech
college
LazyEval
asked
by
LazyEval
7.4k
points
answer
comment
share this
share
0 Comments
Please
log in
or
register
to add a comment.
Please
log in
or
register
to answer this question.
1
Answer
3
votes
You wouldnt use a try and except statement. Use a loop.
Angely
answered
Sep 20, 2022
by
Angely
8.2k
points
ask related question
comment
share this
0 Comments
Please
log in
or
register
to add a comment.
← Prev Question
Next Question →
Related questions
asked
May 7, 2022
216k
views
What is the problem in this program; class Main { public static void main(String[] args) { String userChoice; String userName; double hrsWorked = 0; double payRate = 0.00; double taxRate1 = 0.25; double
Ryuman
asked
May 7, 2022
by
Ryuman
7.5k
points
Computers & Tech
high-school
1
answer
4
votes
216k
views
asked
Dec 2, 2024
73.1k
views
Multipy (-2.655)x (18.44)
Vcmkrtchyan
asked
Dec 2, 2024
by
Vcmkrtchyan
8.7k
points
Mathematics
college
1
answer
4
votes
73.1k
views
asked
Jul 15, 2024
44.5k
views
Multipy : 25X4/5 and reduce to simplest form
Giggsey
asked
Jul 15, 2024
by
Giggsey
8.0k
points
Mathematics
high-school
1
answer
2
votes
44.5k
views
Ask a Question
Welcome to QAmmunity.org, where you can ask questions and receive answers from other members of our community.
9.4m
questions
12.2m
answers
Categories
All categories
Mathematics
(3.7m)
History
(955k)
English
(903k)
Biology
(716k)
Chemistry
(440k)
Physics
(405k)
Social Studies
(564k)
Advanced Placement
(27.5k)
SAT
(19.1k)
Geography
(146k)
Health
(283k)
Arts
(107k)
Business
(468k)
Computers & Tech
(195k)
French
(33.9k)
German
(4.9k)
Spanish
(174k)
Medicine
(125k)
Law
(53.4k)
Engineering
(74.2k)
Other Questions
“What does it mean when we “rework” copyrighted material?”
The book shows how to add and subtract binary and decimal numbers. However, other numbering systems are also very popular when dealing with computers. The octal (base 8) numbering system is one of these.
describe an advance in technology that makes life more enjoyable. what discoveries contribute to this technology?
Twitter
WhatsApp
Facebook
Reddit
LinkedIn
Email
Link Copied!
Copy
Search Qammunity.org