Single and Multiline Comment in Python


In Python, there are two types of comments: single-line and multi-line.

  • Single-line comments start with a hash symbol (#) and extend to the end of the line:
  • Multi-line comments start and end with three quotation marks (""").

Source Code

# Basic Program in Python
# Basic Program in Python
# Basic Program in Python
'''
Basic Program in Python
Basic Program in Python
Basic Program in Python
Basic Program in Python
Basic Program in Python
'''
a = 10
b = 20
c = a + b
print(c)
To download raw file Click Here

Output

30

List of Programs


Sample Programs


Python Database Connection


Python Flask


Python Tkinder Tutorial