# Single line comment
print('Hello world')
print('Hello world') # comment in same line
'''
First line comment
Second line comment
third line comment
'''
print('Hello world')
Using three double quotes
"""
First line comment
Second line comment
Third line comment
"""
print('Hello world')
def add_num(a,b):
'''comment inside about the function'''
return a+ b
print(add_num(4,5))
print(add_num.__doc__)
Output is here
9
comment inside about the function
Learn Python basics through ONLINE classes
Author
🎥 Join me live on YouTubePassionate about coding and teaching, I publish practical tutorials on PHP, Python, JavaScript, SQL, and web development. My goal is to make learning simple, engaging, and project‑oriented with real examples and source code.