filmov
tv
Python Comments | Best Practices For Comments In Python
Показать описание
What is the purpose of comments in Python? Comments in Python allow programmers to explain what is occurring in a given piece of code so that they can remind themselves and any other programmer viewing their code what is happening in plain english. Although comments can be written anyway you wish, it is best to follow the Python best practices for commenting, which is the focus of this video.
This timeline is meant to help you understand the best way to comment your Python code:
0:00 Introduction.
0:09 How to comment in Python.
0:17 What does a comment in Python mean?
0:59 Best Practice 1: Keep comments concise.
1:17 Best Practice 2: Eliminate redundancy.
1:30 Best Practice 3: Always keep variable names as relevant as possible.
1:50 Best Practice 4: Break up long comments into multiline comments.
2:10 How to comment / uncomment large pieces of code in Python.
2:21 Summary of comments in Python.
2:35 Outro
Follow & Support StudySession:
What is Python and why you should learn Python? Python programming, in particular Python 3, is a growing programming language that is loved by many programmers due to its simple syntax and ease of use. Python allows for relatively easy debugging of your codes and there are many beautiful Python IDE's available for free to make coding more enjoyable. Python is also very popular among Data Scientists and many machine learning applications. Through this video and others like it in our "learn Python" playlist, we here at StudySession hope to provide you with an excellent education for free.
#studysession #programming #python
This timeline is meant to help you understand the best way to comment your Python code:
0:00 Introduction.
0:09 How to comment in Python.
0:17 What does a comment in Python mean?
0:59 Best Practice 1: Keep comments concise.
1:17 Best Practice 2: Eliminate redundancy.
1:30 Best Practice 3: Always keep variable names as relevant as possible.
1:50 Best Practice 4: Break up long comments into multiline comments.
2:10 How to comment / uncomment large pieces of code in Python.
2:21 Summary of comments in Python.
2:35 Outro
Follow & Support StudySession:
What is Python and why you should learn Python? Python programming, in particular Python 3, is a growing programming language that is loved by many programmers due to its simple syntax and ease of use. Python allows for relatively easy debugging of your codes and there are many beautiful Python IDE's available for free to make coding more enjoyable. Python is also very popular among Data Scientists and many machine learning applications. Through this video and others like it in our "learn Python" playlist, we here at StudySession hope to provide you with an excellent education for free.
#studysession #programming #python
Комментарии