Y
HN Search
Hacker News Search
new
|
comments
|
top
|
jobs
throwaway91919
searching PlanetScale…
1.
▲
2.
▲
3.
▲
4.
▲
5.
▲
6.
▲
4 ms
·
1.
▲
by
throwaway91919
11y ago
Ah, thanks.
2.
▲
by
throwaway91919
11y ago
Can you (or someone) clarify what problem you're talking about? This seems to work as expected for me: def foo(x=[]): sum = 0 for a in x: sum += a return sum print foo([3,5]) # 8 print foo(x=[3])