#24 Python Tutorial for Beginners | comments in python | multi-line statement in python

Published: 21 March 2020
on channel: Daneyal Lari
210
7

In this video, you will learn how to write comments in Python and how to write a multi-line statement in Python.

Comments in Python:

1. Single line comment:
A single-line comment starts with a hash symbol ‘#’ and ends as the line ends.
These lines are never executed and are ignored by the interpreter.

2. Multi-line comments:
Multi-line comments start and ends with single triple quotes ‘’’ or triple “”” double-quotes.
Used for documentation.

Multi-line Statements:
1. Python statements always end up with a new line, but it also allows multiline statements using “\” character at the end of the line as shown below

2. Statements which have brackets like (),[],{} and comma, do not need any “\” to go to next line
myApps = ['c prowess', 'c++ prowess', 'java prowess',
'prowessapps.in' ]

https://www.prowessapps.in/python

Write your queries at:

daneyallari@gmail.com
prowessapps.in@gmail.com

Please like, comment, share and subscribe.

Thank You

#daneyallari #python #pythonByDaneyalLari


On this page of the site you can watch the video online #24 Python Tutorial for Beginners | comments in python | multi-line statement in python with a duration of online in good quality, which was uploaded by the user Daneyal Lari 21 March 2020, share the link with friends and acquaintances, this video has already been watched 210 times on youtube and it was liked by 7 viewers. Enjoy your viewing!