Types of Comments in Python
Two types of comments in python
Creating a Comment
single line Comments starts with a #, and Python will ignore them:
#print("Welcome to Training Center")
Multi-Line Comments starts with
"""
This is a comment
written in
more than just one line
"""
Ex:
#print('welcome to python single line comments')
x=90
print("x value is =",x)
output : x value is = 90
Ex: Multi-line Comments
"""
print('Basic python programming language')
print("Web Designing and Web Development") """
print(""" Mobile App Designing and Development""")
print("Python Frameworks : Django,Flask")
output: Mobile App Designing and Development, Python Frameworks : Django,Flask
Comments
Post a Comment