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

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bansalhimani
    New Member
    • Dec 2018
    • 5

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

    Problem with the following piece of code-
    >>> def func(n=[]):
    #playing around
    pass
    >>> func([1,2,3])
    >>> func()
    >>> n
  • dwblas
    Recognized Expert Contributor
    • May 2008
    • 626

    #2
    No. I have no idea what it is supposed to do.

    Comment

    • OldStory
      New Member
      • Aug 2012
      • 23

      #3
      Use the CODE tag to get more answers.
      What should this piece of code to do?

      Comment

      Working...