By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,842 Members | 2,186 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,842 IT Pros & Developers. It's quick & easy.

Can you explain me the problem with the following piece of code?

P: 5
Problem with the following piece of code-
>>> def func(n=[]):
#playing around
pass
>>> func([1,2,3])
>>> func()
>>> n
Dec 19 '18 #1
Share this Question
Share on Google+
2 Replies


Expert 100+
P: 612
No. I have no idea what it is supposed to do.
Dec 19 '18 #2

P: 23
Use the CODE tag to get more answers.
What should this piece of code to do?
Dec 21 '18 #3

Post your reply

Sign in to post your reply or Sign up for a free account.