RUVIDEO
Поделитесь видео 🙏

Python Tutorial for Beginners-Part-04- commenting python смотреть онлайн

Python Tutorial for Beginners-Part-04- commenting python

Python Tutorial for Beginners

Part-04 -Commenting in Python

What are comments ?

Valuable information or discription about code written

- Comments enhance code readability.

- Purpose comments help humans to understand code better and in easier.

- Ignored by compilers and interpreters.

- Helps in code mentaiblity



Commenting in python
--------------------

Single line comment
-------------------

For single line commenting # (pound) sign is used

# this is a single line comment and it will not get executed

# this is another line, which is commented




Usually you see this line in Python files.
------------------------------------------
#!/user/bin/env python

points Python interpreter path on Unix like systems.


Multiple line comment.
--------------------
In Python multi-line or block commenting is done by using # (pound) sign on each line.



# This is the first line

# This is second line

# This is third line

# Comments continue





There is misconception about, people use triple quotes for commenting.

Actually triple quotes are used to represent multi-line string.



Double quotes, multi-line string.
-------------------------------

"""

this is first line

this is second line

this is third line

this is fourth line

this is fifth line

like this many lines can be added

"""

Single quote multi-line string.
-------------------------------

'''

This is an example to show

how multi line string is added

to python file.

'''

- Using triple quotes for commenting is a bad practice, avoid it.

- Comments are to briefly explain about code functionality.

Not to block a piece of code form execution.

docstring
-----------

Multi line string block is also used to add to docstring to Python file.

docstring is short hand for documentation strings.




Just Learn Python

All about Python programming,

In this channel you will find videos related various Python programming topics,




Like tutorials, Exercises, code snippets, Projects, tips and tricks of Python,

Python best practices , Python tutorials, Real life examples, coding practices, interview questions.

Что делает видео по-настоящему запоминающимся? Наверное, та самая атмосфера, которая заставляет забыть о времени. Когда вы заходите на RUVIDEO, чтобы посмотреть онлайн «Python Tutorial for Beginners-Part-04- commenting python» бесплатно и без регистрации, вы рассчитываете на нечто большее, чем просто загрузку плеера. И мы это понимаем. Контент такого уровня заслуживает того, чтобы его смотрели в HD 1080, без дрожания картинки и бесконечного буферизации.

Честно говоря, Rutube сегодня — это кладезь уникальных находок, которые часто теряются в общем шуме. Мы же вытаскиваем на поверхность самое интересное. Будь то динамичный экшн, глубокий разбор темы от любимого автора или просто уютное видео для настроения — всё это доступно здесь бесплатно и без лишних формальностей. Никаких «заполните анкету, чтобы продолжить». Только вы, ваш экран и качественный поток.

Если вас зацепило это видео, не забудьте взглянуть на похожие материалы в блоке справа. Мы откалибровали наши алгоритмы так, чтобы они подбирали контент не просто «по тегам», а по настроению и смыслу. Ведь в конечном итоге, онлайн-кинотеатр — это не склад файлов, а место, где каждый вечер можно найти свою историю. Приятного вам отдыха на RUVIDEO!

Видео взято из открытых источников Rutube. Если вы правообладатель, обратитесь к первоисточнику.