python not appending to list code example
Example: python not adding to list
main_list = []
second_list = []
def MyFunc():
global main_list
global second_list
main_list = ['more', 'good', 'stuff']
second_list = ['another', 'list']
MyFunc()
print(main_list) # ['more', 'good', 'stuff']
print(second_list) # ['another', 'list']