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
vazorg [7]
4 years ago
12

Write a python program called loop that computes and prints the sum of numbers from 1 to 10

Computers and Technology
1 answer:
galina1969 [7]4 years ago
6 0

Here is code in Python.

# variable to store sum of numbers from 1 to 10

sum=0

for i in range(1,11):

   #calculating the sum

   sum+=i

#printing the sum

print("sum of numbers from 1 to 10 is:")

print(sum)

Explanation:

Declare a variable "sum" to store the sum of all the numbers from 1 to 10.

In the for loop i will iterate from 1 to 10 only and each value of i is added to

"sum". then it will print the sum of all the number.

Output:

sum of numbers from 1 to 10 is:                                                                                            

55

You might be interested in
How Extreme Programming addresses Software Testing andevolution ?
kumpel [21]

Answer:

Extreme programming is a software development technique which is used to enhance software quality and it's response to ever changing customer requirements.

Testing

Testing is main focus in extreme programming.Extreme programming addresses testing in a way that if a minute testing can eliminate a bit of flaws, extensive testing can terminate a lot of flaws.

Evolution in Extreme programming is like this:-

Coding:-First programmers will code the problem.

Testing :- Testing is done to remove flaws.

Listening:- Programmers must listen to the customers to what they need.

Designing:-Then design according to the customer needs.

6 0
3 years ago
Along with an ip address, a subnet mask, and a name server, the other thing required for a computer to operate on a network is a
laiz [17]

Along with an IP address, a subnet mask, and a name server, the other thing required for a computer to operate on a network is a primary gateway. The primary gateway acts as an access point which forwards information to another network or the internet.

6 0
4 years ago
Design an Application called Student Course Management create interface called Student Course add an abstract method called ad C
sdas [7]

Answer:

Im pretty sure this has to do with coding, and running an application, so, you should probably run something like MSWord

Explanation:

6 0
3 years ago
What is the best information to include in the template name to differentiate it from other templates? Check all that apply.
KengaRu [80]

Answer:

2. version number

Explanation:

It is the version number of the template that explains how old or new it is. Also. if we want to differentiate between the two versions, then we probably have the best option as a version number to find out a template. and you just need to find the version number for it. You can have four versions in a year, and hence the year is not an option either. Also, the author's name can be the same for two software, and hence the author's name cannot be counted. The file size of the two versions can be the same as well. Hence, the file size cannot be used as well.

8 0
3 years ago
A server, also called a(n) _______________, operating system is a multiuser operating system because it controls a central compu
DanielleElmas [232]

Answer: Network

Explanation:

The server is one of the type of computer program that basically provides the various types of functionality for the specific services.

  • It is one of the multiuser operating system as it controlling the central computer that support various types of users on the specific devices.
  • Single server can easily provide the database server, application server and the file server.

Therefore, Network is the correct answer.

 

8 0
3 years ago
Other questions:
  • In which career field, would the Computing Technology Industry Association's CompTIA A+ certification be useful?
    13·1 answer
  • ____ takes the idea of breaking down a program into separate and reusable functions to the next level by focusing on the encapsu
    10·1 answer
  • What type of device is the printer?
    13·2 answers
  • Kindly answer in Just 7,8 lines please
    7·1 answer
  • PSEUDOCODE PRACTICE!!! NEED HELP IMMEDIATELY!!! FIRST ANSWER GETS BRAINLYEST!!!
    12·1 answer
  • Dr. Robbins wants to know if there are different opinions regarding the value of public school education between Native American
    11·1 answer
  • Decision making at the executive or strategic level requires business intelligence and knowledge to support the uncertainty and
    12·1 answer
  • The part of a rocket engine that allows the combustion gases and flames to leave the rocket engine is the
    14·1 answer
  • Line 9 and 10
    15·1 answer
  • Which of the following tabs on the Ribbon contains the command to add a Quick Part to a document? A Design B Insert C View D Hom
    7·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!