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
anzhelika [568]
3 years ago
7

Write a Python program that asks the user to enter a series of single-digit numbers with nothing separating them.

Computers and Technology
1 answer:
d1i1m1o1n [39]3 years ago
5 0

The Python 3 code for the program described in the question:

def sum_digits(str):

sum = 0

for c in str:

sum += int(c)

return sum

def main():

print("Enter series of single-digit numbers with no spaces: ")

str = input()

print("The sum of digits of the entered number is", sum_digits(str))

main()

You might be interested in
To move or copy a range of cells, select the correct order:
Karo-lina-s [1.5K]

Answer:

Correct Order

2. Select the cell or range you want to move or copy.

1. Move the pointer over the border of the selection until the pointer changes shape.

3. To move the range, click the border and drag the selection to a new location, or to copy the range, hold down the Ctrl key and drag the selection to a new location.

Explanation:

To move or copy range of cells in MS Excel, You first select the cell/range you want to move or copy, hover the mouse pointer and take note when it changes shape, then finally click the border (when you noticed the change of shape of the pointer) and hold down the ctrl key and drag it to the destination location.

6 0
3 years ago
Amy adds 16 GB of storage to her smartphone.
tatyana61 [14]
For every 1 gigabyte equals 1000 megabytes. Therefor Amy can store 8000 pictures on her smartphone.

1 GB to 1000 MB
16 GB to 16000 MB
File size 2 MB
16000 MB divided by 2 MB = 8000 MB
8 0
3 years ago
Applying patches is much easier today because of the advent of:
Nadusha1986 [10]

Answer:

A. The internet.

Explanation:

Patches can be defined as software updates released by developers to add new features, upgrade software, install new drivers and fix notable functionality issues (software bugs) associated with an installed software application. These software patches are usually made available on the software developer's website and other third-party platforms for download by the end users.

Hence, through the availability of a network connection (internet), patches are uploaded to the cloud or file server by the software manufacturer or developer for continuous and easy access (download) to all interested users. Thus, applying patches is much easier today because of the advent of the internet.

6 0
3 years ago
Explain different types of port?​
lukranit [14]

Answer:

.serial port

.VGA port

.Modem port

explain A port is a channel through which a device communicate with the operating system.

4 0
2 years ago
How many layers are there in the osi reference model?.
RSB [31]
There are 7 layers in the osi reference model.
8 0
2 years ago
Other questions:
  • Why transportation RFP is important?​
    14·1 answer
  • Given a computer running four types of instuctions, named classes A through D, calculate the execution time of a program that ha
    5·1 answer
  • Which AWS service is a managed service that makes it easy to set up, operate, and scale a relational database in the cloud?​
    9·1 answer
  • Serveral cheetas are growling at each other while hunting for animals.for which need are they competing?
    14·1 answer
  • How can a wiki contribute to an academic paper?
    9·2 answers
  • Why are typewriter keys arranged the way they are?
    14·1 answer
  • Image-editing software is used to _____.
    15·2 answers
  • Adobe reader is a type of​
    14·2 answers
  • A mysql prompt has been opened for you. Using the college database, complete the following tasks (use either a single-line or a
    7·1 answer
  • An entity is said to be _____-dependent if it can exist in the database only when it is associated with another related entity o
    12·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!