113k views
0 votes
Name and fix the two errors in the following piece of code that is intended to print “Debugging is fun!”.

print //(“Debugging is fun!”).

User Elvn
by
6.0k points

2 Answers

1 vote

Answer:

no semicolon

needs brackets around print

{print:}// ("Debugging is fun!").

User Davykiash
by
5.2k points
2 votes

Answer:

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!")

Step-by-step 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.

User AustinDahl
by
5.9k points