Here, I have two examples, but I don't know why the two outcomes are different.
First example:
list_own=["subway", "plane", "ship","vehicle"]
list_own.insert(0,"train")
print(list_own)
['train', 'subway', 'plane', 'ship', 'vehicle']
Second example:
list_own=["subway", "plane", "ship","vehicle"]
print(list_own.insert(0,"train")
None
Does anyone know why the outcomes shown above are different?