Ask Question
5 April, 13:39

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. 5 April, 15:18
    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.
  2. 5 April, 15:30
    0
    no semicolon

    needs brackets around print

    {print:}/ / ("Debugging is fun!").
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 and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers