You are viewing a single comment's thread. Return to all comments →
def greet(): def hello(): print("hello world") hello() greet()
def funarg(p1,p2): print("possitive argument 1:",p1) print("possitive argument 2:",p2) funarg("samarth","taarun")
x=200 def glbvar(): global x x=300 return x print(x) glbvar() print(x)
Seems like cookies are disabled on this browser, please enable them to open this website
An unexpected error occurred. Please try reloading the page. If problem persists, please contact support@hackerrank.com
Say "Hello, World!" With Python
You are viewing a single comment's thread. Return to all comments →
def greet(): def hello(): print("hello world") hello() greet()
def funarg(p1,p2): print("possitive argument 1:",p1) print("possitive argument 2:",p2) funarg("samarth","taarun")
x=200 def glbvar(): global x x=300 return x print(x) glbvar() print(x)