Python Forum
Is there an error in the code?
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there an error in the code?
#1
I cannot find the problem with the following piece of code-
>>> def func(n=[]):
               #playing around
                pass
>>> func([1,2,3])
>>> func()
>>> n
Reply


Messages In This Thread
Is there an error in the code? - by himanibansal - Dec-19-2018, 12:21 PM
RE: Is there an error in the code? - by buran - Dec-19-2018, 12:37 PM

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020