filmov
tv
Learn the 7 usages of Underscore ( _ ) character in Python programming

Показать описание
All programming languages do have some common elements; inputs, functions, outputs, variables, ... . But there are also unique idea in some programming languages and if you want to know about them, you need to specifically study them. This is what makes a person proficient in a specific programming language.
One of these is the usage of underscore ( the _ ) in Python programming. In this video I will show you 7 different usages of this character from a very trivial "digit separator" to a more cool "underscore as a dummy variable" and some more advanced topics like the meaning of __name__ == "__main__" which you might see in some source codes (and most of the libraries).
Lets start and let's write better code!
00:40 - Underscore to separate digits in long numbers
01:40 - _ is the last result in IDLE
02:49 - underscore as dummy variable
04:52 - _ After python keywords as variable names
06:16 - Underscore before variable as a weak local
07:36 - two underscore before class members
08:45 - Variables with two underscores on both sides, like __name__
One of these is the usage of underscore ( the _ ) in Python programming. In this video I will show you 7 different usages of this character from a very trivial "digit separator" to a more cool "underscore as a dummy variable" and some more advanced topics like the meaning of __name__ == "__main__" which you might see in some source codes (and most of the libraries).
Lets start and let's write better code!
00:40 - Underscore to separate digits in long numbers
01:40 - _ is the last result in IDLE
02:49 - underscore as dummy variable
04:52 - _ After python keywords as variable names
06:16 - Underscore before variable as a weak local
07:36 - two underscore before class members
08:45 - Variables with two underscores on both sides, like __name__
Learn the 7 usages of Underscore ( _ ) character in Python programming
Learn 7 ways to use “OFF” in English
MY TOP TIPS! Learn & Use More Phrasal Verbs | English Lesson
How I Use AI & Reddit to Find $1M+ Startup Ideas (FULL Blueprint)
GET - 7 Most Common Uses of the Verb GET - Learn How to Use GET Correctly - English Vocabulary
Learn English Grammar: How to use SO & SO THAT
42 Important Prepositions: Learn How to Use 'In,' 'On,' 'At,' and More...
How to Memorize Anything
Please, learn the rules! When do we use “THE” in English? (+ when DON’T we?)
How I'd Learn AI In 2025 (If I Could Start Over)
This is SO cool!
Emotions Explained in a SUPER FUN Way! 😍😤🤣 #kids #shorts #learning
Use This Study Technique
How To Learn And Use 1000 English Vocabulary Words
Did you know all of these uses for the PlayStation button on your DualSense controller? #PS5 #tips
How to Improve Your Essays
How to create shapes in microsoft word?
How to Use Chopsticks
How to Learn MODES on Guitar (and USE them INSTANTLY)
How to Finish Your Exams Faster
Phrasal Verbs for Everyday Conversation + My Tips to Learn & Use Correctly
7 Most Valuable Self-Hosted Apps I Use Every Day
How to Answer Any Question on a Test
The Supplies I Used in School
Комментарии