How to Insert Multiple Line Comment in Python Programming

What is Comment in Python Programming
Program में Comment एक ऐसा भाग होता है जो Program में लिखा होता है लेकिन उसे Program में Execute नहीं किया जाता है इसलिए Programmer इसे Program के किसी भाग को समझने या समझाने के लिए नोट लिखनने के लिए उपयोग कर सकता है
Python One Line Comment
Python के Program में Comment Insert करने के लिए # का Use किया जाता है लेकिन यह Single Line Comment Insert कर सकता है और एक से अधिक Line में Comment लिखने के लिए इसे बार-बार Use करना होता है
जैसे – #Comment Line1
#Comment Line2
#Coment Line3
Python Multiple Line Comment
वैसे तो Python में # का Use करके One Line Comment Insert होता है लेकिन Multiple Line Comment का Alternate बनाया जा सकता है जिसे String की तरह Use करना होगा
Python Programming में 3 बार Single या Double Quotation ”’ “”” का Use करके Multiple Line String को किसी Variable में Store किया जाता है
a = “””Multiple
Line
String”””
अब यदि यहाँ से Variable को हटा दिया जाए तो यह Program में Multiple Line Comment की तरह Use किया जा सकता है
“””Multiple
Line
Comment”””
print(“This is an Alternate Example of Multiple Line Comment”)
Important Question Answer
Click Here for Important Question-Answer – Computer
Click Here for Important Question-Answer – Indian Geography
Click Here for Important Question-Answer – World Geography
Click Here for Important Question-Answer – Indian History
Click Here for Important Question-Answer – Economy
Click Here To Go To Home Page and Get More Knowledge