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
laila [671]
3 years ago
14

PYTHON ERROR, PLEASE HELP I'LL GIVE BRAINLIEST TO WHOEVER HELPSSSS

Computers and Technology
1 answer:
cricket20 [7]3 years ago
6 0
U put too many brackets on the second to last line at the end
You might be interested in
When you first turn on a computer and you donât hear a spinning drive or fan or see indicator lights, is the problem hardware or
skelet666 [1.2K]
Hardware related. 
Give thanks
5 0
3 years ago
Given a variable temps that refers to a list, all of whose elements refer to values of type float , representing temperature dat
VARVARA [1.3K]

Answer:

The problem of the question code is as follows:

Explanation:

  1. There must be the items in the list: The above question code is in python language. The temps are a list type variable that is used to hold the collection of items or value. But in the above code, there is no item in the K list. So first remove this problem with the help of add the value on the list. There are two ways to add value to the list:- 1. Define the static list element by writing like "temps=[1.2,2.4,4.5]". and 2. Take input from the user and then add by "temps.append(item)".
  2. The syntax of the for loop: The syntax of the for loop is not right because it holds the "range" keyword which is written when we give the numeric value like, "for x in range(2)" or "for x in range(1,2)". So to correct for syntax the user needs to write "for k in temps:".

If the user removes the above-defined error from the code then the above code will run correctly

5 0
3 years ago
What was the main purpose of napiers bone?​
poizon [28]

Answer:

Napier's bones is a manually-operated calculating device created by John Napier of Merchiston, Scotland for the calculation of products and quotients of numbers. The method was based on lattice multiplication, and also called 'rabdology', a word invented by Napier.

6 0
3 years ago
Read 2 more answers
What daily life problems does the algorithm quicksort solve?
Zolol [24]

Answer:

Figure 12 shows that 54 will serve as our first pivot value. Since we have looked at this example a few times already, we know that 54 will eventually end up in the position currently holding 31. The partition process will happen next. It will find the split point and at the same time move other items to the appropriate side of the list, either less than or greater than the pivot value.

Explanation:

The quick sort uses divide and conquer to gain the same advantages as the merge sort, while not using additional storage. As a trade-off, however, it is possible that the list may not be divided in half. When this happens, we will see that performance is diminished.

A quick sort first selects a value, which is called the pivot value. Although there are many different ways to choose the pivot value, we will simply use the first item in the list. The role of the pivot value is to assist with splitting the list. The actual position where the pivot value belongs in the final sorted list, commonly called the split point, will be used to divide the list for subsequent calls to the quick sort.

5 0
4 years ago
É correto afirmar que:
Andrew [12]
Is this French. Can u translate into english
8 0
3 years ago
Other questions:
  • What is the most important part of the course that you have learned about so far?
    11·2 answers
  • In what decade did the Internet begin to be used widely by the public and not just government entities?
    11·2 answers
  • printStars is a method that accepts a single int argument and returns no value. It prints as many stars as indicated by its argu
    9·1 answer
  • Search engines enable you to
    9·2 answers
  • What is the number 232 in binary
    7·2 answers
  • Explain in details three security countermeasures you know.​
    10·1 answer
  • How would you use Microsoft Excel to
    10·2 answers
  • What has the same mass as 0.25 mol of copper atoms?​
    6·1 answer
  • Comparison <br> Cloud computing and parallel processors
    6·1 answer
  • What physical disk oriented performance counter should be used to determine the number of requests waiting to be processed by a
    9·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!