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
Blizzard [7]
3 years ago
10

def retry(operation, attempts): for n in range(attempts): if operation(): print("Attempt " + str(n) + " succeeded") ___ else: pr

int("Attempt " + str(n) + " failed") retry(create_user, 3) retry(stop_service, 5)
Computers and Technology
1 answer:
marusya05 [52]3 years ago
6 0

Answer:

Following are the missing code to this question:

break;

Explanation:

In the given python code, a method "retry" is defined, that accepts two-variable, that is "operation and attempts" in its parameters, inside the method a for loop is defined that uses the n variable to holds attempt values and define the conditional statement.

  • Inside if block, it checks if the operation value is true, it will print a successful attempts values and break the condition, otherwise it will goto else block.
  • In the else block, it will print failed attempts values.  
You might be interested in
Which writing format is also beneficial to public speaking? a. Five paragraph essay c. Conventions b. Prose d. None of these
garri49 [273]
convention writing is beneficial to public speaking because writing conventions such as spelling,punctuation,capitalization and grammar help make a student content clear and understandable audience can finish reading without having to stop to try to figure out what was actually intended,the value of learning these writing becomes clear.<span />
4 0
4 years ago
Read 2 more answers
Shortcuts will help you complete spreadsheet tasks more efficiently.
max2010maxim [7]
Ctrl(control) + s = save
Tab = auto complete formula
ctrl +c =copy'
ctrl+v = paste
ctrl +z = undo

you can also drag your formula down different cells

3 0
3 years ago
The act of deliberately accessing computer systems and networks without authorization is generally known as _____.
Anuta_ua [19.1K]

it is known as hacking

3 0
3 years ago
Write a single SQL statement to produce each of the following.
GuDViN [60]

Answer:

a. SELECT order_id, order_date, order_source_id, source_description, first_name || last_name AS customer_name

        FROM customer_order;

b. SELECT order_id, order_date, meth_pmt, first_name || last name AS customer_name

        FROM customer_order;

c. SELECT shipment_id, inv_id, ship_quantity, date_expected, date_received

       FROM shipment_line;

Explanation:

When using SQL statements to display a certain amount of information, the SELECT syntax is used. It is written as;

          SELECT X, Y, Z

             FROM alphabets;

The SELECT statement is used to list the variables to be displayed which are usually separated by a coma.

The FROM indicates the table from which the variables should be extracted from.

The ; sign signifies the end of an SQL statement and that you want your query to be run

This "first_name || last_name AS customer_name" tells SQL to combine the first and last name of customers and display them as customer_name.

       

7 0
3 years ago
What does internet prefixes WWW and HTTPs stands for?
Katena32 [7]

Answer:

World Wide Web - WWW

Hypertext Transfer Protocol (Secure) - HTTPS

Explanation:

WWW means that the source and content is available to the whole world. Regarding what browser or registrar you have, the content will appear. HTTPS means Hypertext Transfer Protocol Secure. This means that it is a safe way to send info from a web system. I hope I helped you!

5 0
3 years ago
Other questions:
  • Distingush between Microkernels andexokernels
    9·1 answer
  • import java.util.ArrayList; // Needed for ArrayList class /** This program demonstrates how to store BankAccount objects in an A
    5·1 answer
  • _ includes websites that encourage interaction and connection among people, businesses, and organizations. A. News sites B. Sear
    5·2 answers
  • What does ALU stand for?
    12·2 answers
  • What is co-operating process
    11·1 answer
  • If you arrive at the same time as another user straight across from you yield if ___.
    15·2 answers
  • _____ serves as a foundation for comparison or measurement.
    6·1 answer
  • Does trend in computing important for organization management?​
    8·1 answer
  • Which of the following describes a characteristic of organic light-emitting diodes (OLEDs) used in clothing?
    6·2 answers
  • Which language should you use to add functionality to web pages?
    15·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!