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

Can anyone please tell me if this is 50 or 64
How did the Peace of Westphalia contribute to the rise of nation-states?
QUESTION 3 [10 MARKS] A bakery finds that the price they can sell cakes is given by the function p = 580 − 10x where x is the number of cakes sold per day, and
Which of the following is an element of positive mental health?
Find the standard deviation for the following group of data items. 11, 14, 14.20 The standard deviation is approximately (Round to two decimal places as needed)
In general, which of the following is a true statement about population sizer a. If birth rate < death rate, population size increases. b. If death rate <
3x3 + 15 x2 + 4x +21 Polynomial division
What is the role of a police officer in investigating a crime?
The fable "why the sun is brighter than the moon" is important to its culture because it reveals?
Given that (1,-8) is on the graph of f(x), find the corresponding point for the function f(x)-4.