Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Last active July 14, 2020 03:08
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 IndhumathyChelliah/a978189105bde58b2576cd704931df17 to your computer and use it in GitHub Desktop.
Save IndhumathyChelliah/a978189105bde58b2576cd704931df17 to your computer and use it in GitHub Desktop.
#variable name having single leading underscore.
_a="hello"
b="helloworld"
def add(x,y):
print (x+y)
#function name having single leading underscore
def _sub(x,y):
print (x-y)
if __name__ == '__main__':
print (_a)#Output:hello
add(4,3)#Output:7
_sub(4,3)#Output:1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment