What is the meaning of underscores (_ and __) in python | Python Interview Questions Series #5

Опубликовано: 13 Февраль 2026
на канале: Coding With Roy
1,080
49

Python Interview Questions series #5:
In how many ways underscores are used in python?
What is the meaning of underscores in python?

Link to Playlist:
   • Python Interview Questions Series - Beginn...  

My Linkedin profile:
  / sukanta-roy-448a5856  

TimeStamps:
0:00 - Intro
1:30 - Single Underscore (_)
3:36 - Single leading underscore (_var)
5:40 - Single trailing underscore (var_)
8:14 - Double leading underscore (__var)
11:35 - Double leading and trailing underscores (__var__)

Tags:
What is single leading underscore (_) in variable name in python?
_var in python?
What is Double leading underscore (__) in variable name in python?
__var in python?
Private variables in python?
What is name mangling in python?