input 2

Run Settings
LanguagePython
Language Version
Run Command
# case 1 : import external module as nicename x = 10 print(x) import dio as lib def a(): print ("I am from function a") a() lib.b() print(lib.x,x) # case 2 : import module name import dio dio.b() print(dio.x) print(dio._y) # case 3 : import everything from module, ease local function from dio import * b() print(x) # can't import _y #====================== # case 4 : import sub module by names from dio import b, _y b() print(_y)
def b(): print("Iam form function b") x = 1 _y = 28
Editor Settings
Theme
Key bindings
Full width
Lines