424,054 Members | 1,055 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,054 IT Pros & Developers. It's quick & easy.

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

P: 4
Problem with the following piece of code-
>>> def func(n=[]):
#playing around
>>> func([1,2,3])
>>> func()
>>> n
4 Weeks Ago #1
Share this Question
Share on Google+
2 Replies

Expert 100+
P: 602
No. I have no idea what it is supposed to do.
4 Weeks Ago #2

P: 22
Use the CODE tag to get more answers.
What should this piece of code to do?
4 Weeks Ago #3

Post your reply

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