subject

The following Python program should print the sum of all the even numbers from 0 to 10 (0, 2, 4, 6, 8, 10), but it has two bugs: x = 0
sum = 0
while x < 10:
sum = sum + x
x = x + 1
print(sum)

Write a sentence or two explaining what the errors are and how to fix them.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 08:30
Linda subscribes to a cloud service. the service provider hosts the cloud infrastructure and delivers computing resources over the internet.what cloud model is linda using
Answers: 1
question
Computers and Technology, 22.06.2019 22:20
Avariable of the data type arrays is storing 10 quantities. what is true about these quantities? a. the quantities all have different characteristics. b. the quantities all have the same characteristics. c. five quantities have the same and five have different characteristics. d. it is necessary for all quantities to be integers. e. it is necessary for all quantities to be characters.
Answers: 2
question
Computers and Technology, 23.06.2019 01:10
Problem 1 - hashing we would like to use initials to locate an individual. for instance, mel should locate the person mark e. lehr. note: this is all upper case. generate a hash function for the above using the numbers on your telephone. you know, each letter has a number associated with it, so examine your telephone keypad. generate 512 random 3 letter initials and take statistics on a linked list array size 512 to hold this information report how many have no elements, 1 element, 2 elements, does this agree with the hashing statistics distribution?
Answers: 1
question
Computers and Technology, 24.06.2019 07:30
Aproject involves many computing systems working together on disjointed task towards a single goal what form of computing would the project be using
Answers: 3
You know the right answer?
The following Python program should print the sum of all the even numbers from 0 to 10 (0, 2, 4, 6,...
Questions
question
Biology, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Chemistry, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
English, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Social Studies, 14.09.2020 21:01
question
English, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Social Studies, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01
question
Mathematics, 14.09.2020 21:01