How to Display a String Literal in Python


In this example, we will learn how to display a string literal with the print() function in Python.

Source Code

print("Python")
print('Python')

Output:

Python
Python
Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments