Ask Question

Name and fix the two errors in the following piece of code that is intended to print "Debugging is fun!".

print / / ("Debugging is fun!").

+4
Answers (2)
  1. 26 October, 18:15
    0
    no semicolon

    needs brackets around print

    {print:}/ / ("Debugging is fun!").
  2. 26 October, 18:19
    0
    By presuming the code given is in Python 3:

    First error fix - remove the double slashes "//"

    Second error fix - remove the period "."

    Correct code should look like this:

    print ("Debugging is fun!")

    Explanation:

    In Python programming, double slashes "//" is always used as the operator to returns the integer part of a division by truncating the fractional part.

    Besides, period "." is not recognized as the end of a program statement. This is not necessary to include any character at the end of a statement.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question 👍 “Name and fix the two errors in the following piece of code that is intended to print "Debugging is fun!". print / / ("Debugging is fun!"). ...” in 📗 Computers & Technology if the answers seem to be not correct or there’s no answer. Try a smart search to find answers to similar questions.
Search for Other Answers