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 09:50
17. implement the jvm dload instruction for the mic-2. it has a 1-byte index and pushes the local variable at this position onto the stack. then it pushes the next higher word onto the stack as well
Answers: 2
question
Computers and Technology, 22.06.2019 22:30
Alex’s family members live in different parts of the world. they would like to discuss the wedding plans of one of their distant relatives. however, alex wants all the family members to talk to each other simultaneously so that they can make decisions quickly. which mode of internet communication should they use? a. blog b. email c. wiki d. message board e. instant messaging
Answers: 2
question
Computers and Technology, 24.06.2019 02:30
Which option completes the explanation for conflict of interest in an organization
Answers: 1
question
Computers and Technology, 24.06.2019 08:30
Why might you choose to create a functional resume
Answers: 1
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
Chemistry, 15.12.2020 01:00
question
Mathematics, 15.12.2020 01:00
question
Mathematics, 15.12.2020 01:00
question
Health, 15.12.2020 01:00
question
Mathematics, 15.12.2020 01:00
question
Mathematics, 15.12.2020 01:00
Questions on the website: 13722365