def inheriting():
results = set()
resultsAdd(results)
print(results)
return None
def resultsAdd(results):
results.add("3")
return None
inheriting()
here for example, i expected inheriting() it to print an empty set. if i change it to
results = "someString"
and did results = "otherString"
to that in resultsAdd(results)
it just prints "someString".
I want to learn more about this but I don't know what i would look for. Can someone explain or tell me where I can learn more about these?