Q. Which names are local, which are global and which are built-in in the following code fragment?
invaders = 'Big names'
pos = 200
level = 1
def play():
max_level = level + 10
print(len (invaders ) == 0)
return max_level
res = play()
print (res)
Answer :-
Global names :- invaders, pos, level, res
Local names :- max_level
Built in :- len
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )