Can the triple quotes string literal be printed?

Hi everyone. I’ve already know how to use a string in Python. Like this:

print("Hello World!")

But what if I try to print a string, like this?

print('''
Hello,
Python!
''') #What will be printed?

Can the triple quotes string literal be printed inside the print() function in Python?

Please answer.

Pummarin :slight_smile:

try it, what happens?

2 Likes