In this Python tutorial, we are going to explore how to use the Python pass statement. First off what is the pass statement? Well, the pass statement is a placeholder which tells Python to pass over the code and continue without throwing an error due to the lack of code in the code block which is required by the statements syntax. Do not over think the pass statement it really serves no purpose other than calling fives on a code block. I tend to use the pass statement when testing my code. If I want to make sure a piece of my statement works then I will use pass till I can figure out the rest of statement.
How To Use The Pass Statement in Python 3 - YouTube | |
20 Likes | 20 Dislikes |
2,579 views views | 14,790 followers |
Education | Upload TimePublished on 8 Jul 2016 |
Không có nhận xét nào:
Đăng nhận xét