Inspired Python
◆◆◆
def mutable(x, l = []):
l.append(x)
print(f"My values {l=}")
>>> mutable("Example 1")
My values l=['Example 1']
>>> mutable("Example 2")
My values l=['Example 1', 'Example 2']
def mutable(x, l = []):
l.append(x)
print(f"My values {l=}")
>>> mutable("Example 1")
My values l=['Example 1']
>>> mutable("Example 2")
My values l=['Example 1', 'Example 2']
We'll tell you about the latest courses and articles.