Created
October 21, 2022 20:55
-
-
Save ibehnam/2d9e1f54fcf0f00acb7eb92224a18ecd to your computer and use it in GitHub Desktop.
This file contains 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.name = 'dummy example' | |
def bigNumber(self, number): | |
return number * 1000000000 | |
e = example() | |
e.name # 'dummy example' | |
e.bigNumber(5) # 5000000000 | |
print('{:_}'.format(e.bigNumber(5))) # 5_000_000_000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment