What is multi line comment? | CHAPTER - 3 | Easy PYTHON | tamil | Sathish
๐๐Hello friends.... welcome to mistakes makes me youtube channel. I'm sathish Follow me on Instagram : profile ID @mistakesmakesme https://www.instagram.com/mistakesmakesme/ Mail : [email protected] Facebook : https://www.facebook.com/Mistakes-Makes-Me-106587041111855/ Telegram : https://t.me/mistakesmakesme ---------------------------------------------------------------------------------------------------------------------------------------- Thank you so much for watching this video ๐๐& keep supporting to #mistakesmakesme to do more ๐In this video we can see CHAPTER - 3 1) Creating a comment 2) Multi Line comment Comments can be used to explain Python code. Comments can be used to make the code more readable. Comments can be used to prevent execution when testing code. Comments starts with a #, and Python will ignore them: Comments can be placed at the end of a line, and Python will ignore the rest of the line: Multi Line Comments Python does not really have a syntax for multi line comments. To add a multiline comment you could insert a # for each line: Or, not quite as intended, you can use a multiline string. Since Python will ignore string literals that are not assigned to a variable, you can add a multiline string (triple quotes) in your code, and place your comment inside it: Example """ This is a comment written in more than just one line """ print("Hello, World!") Comments can be placed at the end of a line, and Python will ignore the rest of the line: This will might useful for you. Please share๐ this video to your friends & families. "Comment your suggestions, ideas, thoughts, topics and more"
Download
0 formatsNo download links available.