edmontonpy.com
@edmontonpy
edmontonpy.slack.comsl
When standing as a group of people, always leave room for 1 person to join your group."
# don't do this
def f(value, seq=[]):
seq.append(value)
return seq
>>> f(value=4)
[2, 4]
>>> f(value=8)
[2, 4, 8]
>>> f(value=16)
[2, 4, 8, 16]
def f(value, seq=None):
if not seq:
seq = []
seq.append(value)
return seq
>>> f(value=2)
[2]
>>> f(value=4)
[4]
>>> f(value=8)
[8]
>>> f(value=16)
[16]
How Python Saved My Basement
Dennis Miller
Making a Basic Neural Network Model Using 6 Lines of Code
Steven Luoma
NEXT MEETUP ON DECEMBER 9