1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
pshichka [43]
3 years ago
14

Write a program that divides mystery_value by mystery_value #and prints the result. If that operation results in an #error, divi

de mystery_value by (mystery_value + 5) and then print the result. If that still fails, multiply mystery_value #by 5 and print the result. You may assume one of those three things will work.
1 mystery_value = 5 2 3 #You may modify the lines of code above, but don't move them! 4 #when you submit your code, we'll change these lines to 5 #assign different values to the variables. 6 I 7 #write a program that divides mystery value by mystery_value 8 #and prints the result. If that operation results in an 9 #error, divide mystery value by (mystery_value + 5) and then 10 #print the result. If that still fails, multiply mystery_value 11 #by. 5 and print the result. You may assume one of those three 12 #things will work, 13 # 14 #You may not use any conditionals. 15 # 16 #hint: You're going to want to test one try/except structure 17 #inside another! Think carefully about whether the second 18 #one should go inside the try block or the except block. 19 20 21 #Add your code here! 22
Computers and Technology
1 answer:
Zolol [24]3 years ago
5 0

Answer:

mystery_value = 5  

try:

   print(mystery_value / mystery_value)

except:

   try:

       print(mystery_value / (mystery_value + 5))

   except:

       print(mystery_value * 5)

You might be interested in
Create an algorithm and flowchart that will accept name of user and display it.
vivado [14]

Answer:

Algorithm

1.Start.

2.Using an input function, ask the user to input the name and store the Entered Value in string    variable.

3.Print value stored in String Variable.

4.End.

Flow chart:

5 0
4 years ago
What service is required to log onto a domain but is not required to log onto a workgroup?
tangare [24]

Answer:

The answer is "Netlogon server".

Explanation:

It is a process on Microsoft windows which verifies clients and other domain services. normal operating in the background, since it is a service and its not an application, only if it is disabled manually or from an error in runtime.

  • It can interrupt or restart from both the command-line.
  • It needed to be functioning to allow a secure channel to be formed between both the server and the DC, this also enables Dynamic DNS changes to operate.
7 0
4 years ago
Hardware is defined as the physical parts of a computer
ddd [48]
Indeed, this is to be true as software is to programs and applications(apps) hardware is to physical computers such as hard drive, SSD, motherboard, ram, graphics card, ect...
8 0
3 years ago
A mother takes her child to the pediatrician because her right eye is red, itchy, with a mucus discharge coming from the eye. Th
allochka39001 [22]

Answer:

H10.021

Explanation:

7 0
3 years ago
Help please , I'm marking the brainliest
NNADVOKAT [17]

Answer:

Not sure about the first one

Second is False

Third is True

I think four is False

Five is Decor

6 is Content Page

Explanation:

8 0
2 years ago
Other questions:
  • A time-saving strategy that helps define unfamiliar words involves using
    13·2 answers
  • What are the pros and cons of the internet’s ability to access information
    8·2 answers
  • If you were to create a new app for a smartphone or tablet that does not already exist, what would you create?
    10·1 answer
  • What X coordinate does the center of a game begin at?
    9·1 answer
  • D) Informal high level descuption of an algorithm in english kcalled
    9·2 answers
  • Please help ASAP!!! :))
    9·1 answer
  • What is a navigation bar?
    7·1 answer
  • A normal HDMI signal has a colour depth of 8 bits per each of RGB colour. The maximum number
    13·1 answer
  • You have been assigned to investigate whether or not an employee at a local hospital has been accessing patient records and sett
    14·1 answer
  • Write an if-else statement that assigns 0 to the variable b if the variable a is less than 10. Otherwise, it should assign 99 to
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!