Skip to content

Instantly share code, notes, and snippets.

@ibehnam
Created October 21, 2022 20:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ibehnam/2d9e1f54fcf0f00acb7eb92224a18ecd to your computer and use it in GitHub Desktop.
Save ibehnam/2d9e1f54fcf0f00acb7eb92224a18ecd to your computer and use it in GitHub Desktop.
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