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

Показать описание
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',
Write your queries at:
Please like, comment, share and subscribe.
Thank You
#daneyallari #python #pythonByDaneyalLari
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',
Write your queries at:
Please like, comment, share and subscribe.
Thank You
#daneyallari #python #pythonByDaneyalLari