Created
December 21, 2019 15:29
-
-
Save FerdinaKusumah/7569abff9416bd0e78f4faeb8e2b626d to your computer and use it in GitHub Desktop.
Underscore python
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Example: | |
def __init__(self): | |
self.foo = 21 | |
self._bar = 25 | |
>>> t = Example() | |
>>> t.foo | |
21 | |
>>> t._bar | |
25 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment