Ask Question
4 May, 01:02

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

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

+3
Answers (2)
  1. 4 May, 02:47
    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. 4 May, 03:27
    0
    no semicolon

    needs brackets around print

    {print:}/ / ("Debugging is fun!").
Know the Answer?
Not Sure About the Answer?
Get 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 there is no answer or all answers are wrong, use a search bar and try to find the answer among similar questions.
Search for Other Answers