Comments in Python. Python code with example. Python Complete Course Video # 3

Опубликовано: 28 Декабрь 2022
на канале: Guangshu Coder
40
like

Comments in python:
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:
This is a comment
Comments can be placed at the end of a line, and Python will ignore the rest of the line. it can also be used to prevent Python from executing code:
Python does not really have a syntax for multi line comments.
To add a multiline comment you could insert a # for each line:
you can add a multiline string (triple quotes) in your code, and place
your comment inside it:
Here is code:
This is single line comment
print("Hello World!")
This
is
multiline
comment
print("Hello world!")
"""
this
is another
multiline
comment """
print("Hello World again!")
#python #pythonprogramming #pythontutorial #coding #videos #youtubeshorts #programming #guangshucoder #viral #learning #viralvideo


На этой странице сайта вы можете посмотреть видео онлайн Comments in Python. Python code with example. Python Complete Course Video # 3 длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Guangshu Coder 28 Декабрь 2022, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 40 раз и оно понравилось like зрителям. Приятного просмотра!