def main():
a = [1, 2, 3]
myFunc(a)
print(a)
def myFunc(myList):
myList[1] = 100
Im studying for my final for my first compsci class about python. This code came up and I dont understand why the value of the list changes when the myFunc() doesnt have a return value. Why doesn't it just print out 1,2,3? Thank you for your time.