araf4245 araf4245
  • 01-04-2018
  • Computers and Technology
contestada

4. Name and fix the two errors in the following piece of code that is intended to print “Debugging is fun!”. print //(“Debugging is fun!”).

Respuesta :

keu
keu keu
  • 14-04-2018
print //(“Debugging is fun!”)


Here the print is a function and // is a parameter that is used to comment section of the code. Any function call must be followed by argument call, which in case here is commented. So, the bug arises. So the correct code will be:

print (“Debugging is fun!”)
Answer Link

Otras preguntas

Which of the kingdoms has the smallest number of known species
Which of the kingdoms has the smallest number of known species
What is the mean of 87, 93, 86, 90, and 84?
Natalie earns $2.50 for each cd she sells and $3.50 for each dvd she sells.  Natalie sold 45 dvds last year.  She earned a total of $780 last year selling cds a
What are the 3 features of a typical seigneurie
A farmer hauled in 120 bales of hay. Each of his cows ate 1 1/4 bales. How many cows the farmer feed?
Why was is difficult for the Arab people to form one nation?
By the mid-1700s, the largest city in the colonies was (A) New York (B) Boston (C) Philadelphia (D) Charleston (E) Wilmington, Delaware
If Walt can paint 25 feet of fence in an hour, and Joe can paint 35 feet in an hour, how many minutes will it take them to paint a 150-foot fence, if they work
Find all powers of 4 in range 4 through 1,000