Skip to content

Instantly share code, notes, and snippets.

@IndhumathyChelliah
Created Jul 14, 2020
Embed
What would you like to do?
from c1 import *
#accessing variable names having single leading underscore.
print (_a)#Output:NameError: name '_a' is not defined
#accessing function name havig single leading underscore
print (_sub(7,2))#Output:NameError: name '_sub' is not defined
#accessing variables and functions which is not having single leading underscore.
# we will able to access those varaibles and functions
add(3,4)#Output:7
print (b)#helloworld
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment