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
castortr0y [4]
3 years ago
13

Write a function digits() that accepts a non-negative integer argument n and returns the number of digits in it’s decimal repres

entation. For credit, you should implement this using a loop and repeated integer division; you should not use math.log(), math.log10(), or conversion to string
Engineering
1 answer:
Katyanochek1 [597]3 years ago
3 0

Answer:

Explanation:

Let do this in python. We will utilize the while loop and keep on dividing by 10 until that number is less than 10. Along the loop we will count the number of looping process. Once the loop ends, we can output that as answer.

def digits(n):

    n_digit = 1

    while n >= 10:

         n_digit += 1

         n /= 10

    return n_digit

You might be interested in
The phase sequence of a 3-phase system for which VAN = 120 /90o V and VBN = 120 /210o V is:_______
Vadim26 [7]

Answer:

b. abc

Explanation:

The phase rotation and its sequence is order in which voltage is reached to their respective sources. The wave forms of a polyphase flow through AC source to the panel. The three phase system has two possible sequence which can be a-b-c or c-b-a. The correct answer is therefore b.

4 0
3 years ago
Contrast moral and immoral creativity and innovation<br>​
Archy [21]

Moral creativity and innovation are based on original discoveries,  whereas immoral innovation is based on unscrupulous actions.

<h3>What is innovation?</h3>

Innovation refers to the practices aimed at developing new products and services for the well-being of society.

Moral innovation is an expression generally used to describe technological advancements based on intellectual property rights.

In conclusion, moral creativity and innovation are based on original discoveries,  whereas immoral innovation is based on unscrupulous actions.

Learn more about innovation here:

brainly.com/question/19969274

#SPJ1

7 0
2 years ago
Additional scals apply to the
REY [17]
Location of the class depends on satiation
4 0
2 years ago
You are using a Jupyter Notebook to explore data in a DataFrame named productDF. You want to write some inline SQL by using the
defon
You need to explain it more simple as everyone is clueless
7 0
2 years ago
What major advancement in machine tools occurred in the 1970s and what benefits did it provide? describe in your own words.
mixer [17]

Answer:

I'm just a seventh grader

4 0
3 years ago
Read 2 more answers
Other questions:
  • In a tensile test on a steel specimen, true strain is 0.171 at a stress of 263.8 MPa. When true stress is 346.2 MPa, true strain
    7·1 answer
  • Steam undergoes an isentropic compression in an insulated piston–cylinder assembly from an initial state where T1 5 1208C, p1 5
    15·1 answer
  • An analog baseband audio signal with a bandwidth of 4kHz is transmitted through a transmission channel with additive white noise
    14·1 answer
  • What is the uncertainty in position of an electron of an atom if there is t 2.0 x 10' msec uncertainty in its velocity? Use the
    12·1 answer
  • At a construction site, there are constant arguments and conflicts amongst workers of different contractors and sub-contractors.
    14·1 answer
  • Define ways in which you would go about networking to explore opportunities in your career field and obtain more information for
    11·1 answer
  • Using your knowledge of how an ATM is used, develop a set of use cases that could serve as a basis for understanding the require
    15·1 answer
  • Motors are used to convert electrical energy into mechanical work and the output mechanical work of a motor is rated in horsepow
    9·1 answer
  • How are sedimentary - gravity flows different from fluid - gravity flows
    6·1 answer
  • Ferroconcrete is reinforced concrete that combines concrete and ________. A. Lead c. Copper b. Iron d. Aluminum.
    6·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!