37.1k views
2 votes
Q2.

What is the output of the following code?
print("Test-1")
print("Test-2")
print("Test-3")
#print("Test-4")

1 Answer

5 votes

The first three lines will print:

Test-1

Test-2

Test-3

The fourth line is a comment and it will not print anything.

User Faire
by
5.7k points