Answer to Question #92368 in Python for Milind Jain

Question #92368
def mystery(l):
l = l + l
return()

mylist = [22,34,57]
mystery(mylist)


value of mylist after execution of function
1
Expert's answer
2019-08-07T02:07:10-0400

Answer: [22,34,57]


Value of 'mylist' is unchanged because the operator '+' creates a new list and assigns it to a local variable 'l'.


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS