Login or Sign Up
Logging in...
Remember me
Log in
Or
Sign Up
Forgot password or user name?
Log in with
Search in titles only
Search in Python only
Search
Advanced Search
Forums
BYTES
Product Launch
Updates
Developer Toolkit
Today's Posts
Member List
Calendar
Home
Forum
Topic
Python
Can you explain me the problem with the following piece of code?
Collapse
X
Collapse
Posts
Latest Activity
Photos
Page
of
1
Filter
Time
All Time
Today
Last Week
Last Month
Show
All
Discussions only
Photos only
Videos only
Links only
Polls only
Events only
Filtered by:
Clear All
new posts
Previous
template
Next
bansalhimani
New Member
Join Date:
Dec 2018
Posts:
5
#1
Can you explain me the problem with the following piece of code?
Dec 19 '18, 09:41 AM
Problem with the following piece of code-
>>> def func(n=[]):
#playing around
pass
>>> func([1,2,3])
>>> func()
>>> n
dwblas
Recognized Expert
Contributor
Join Date:
May 2008
Posts:
626
#2
Dec 19 '18, 05:51 PM
No. I have no idea what it is supposed to do.
Comment
Post
Cancel
OldStory
New Member
Join Date:
Aug 2012
Posts:
23
#3
Dec 21 '18, 08:19 PM
Use the CODE tag to get more answers.
What should this piece of code to do?
Comment
Post
Cancel
Previous
template
Next
Working...
Yes
No
OK
OK
Cancel
👍
👎
☕
Comment