Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Last active Jul 14, 2020
Embed
What would you like to do?
#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