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, 23.06.2019 06:30
Martha is designing a single-player game. her manager suggests that she plan the design to incorporate future modifications. which principle of game design relates to planning for future modifications?
Answers: 1
question
Computers and Technology, 23.06.2019 06:30
When early motion pictures played in movie theaters, they were often accompanied by live organ or piano music. which of the following are the most likely reasons that this happened? (select all that apply). the music was provided to distract audience members from the loud sounds made when filmstrips were changed. the music accompanied the movies because the movies were silent and audiences were used to hearing music during plays in theaters. the music usually was played before, and sometimes after the movie, as an alternative form of entertainment. the music viewers to interpret the dramatic action in the films.
Answers: 2
question
Computers and Technology, 25.06.2019 00:30
Which type of cell references are locked and not automatically updated when it’s copied a)formula b)relative c)absolute d)worksheet
Answers: 1
question
Computers and Technology, 25.06.2019 04:20
Austin rare coins, inc., buys and sells rare coins, bullion, and other precious metals through eight web sites with different domain names. an unknown individual took control of austin's servers and transferred the domain names to another registrant without austin's permission. the new registrant began using the domain names to host malicious content—including hate letters to customers and fraudulent contact information—and to post customers' credit-card numbers and other private information, thereby tarnishing austin's goodwill. austin filed a suit in a federal district court against the new registrant under the anticybersquatting consumer protection act. is austin entitled to a transfer of the domain names? austin rare coins, inc., buys and sells rare coins, bullion, and other precious metals through eight web sites with different domain names
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
Chemistry, 10.11.2020 20:00
question
Mathematics, 10.11.2020 20:00
question
History, 10.11.2020 20:00
question
Biology, 10.11.2020 20:00
question
World Languages, 10.11.2020 20:00
question
English, 10.11.2020 20:00
question
Mathematics, 10.11.2020 20:00
question
Mathematics, 10.11.2020 20:00
Questions on the website: 13722367