Why is it possible to affect global variable in success function and it is not in failure function? It seems like it doesn't make any sense. Python is dynamically typed.
global_list = [1,2,3]
def failure_function():
global_list = 'Test'
def success_function():
global_list[0] = 7
print('global_list before everything is', global_list) #[1, 2, 3]
failure_function()
print('global_list after failure function is', global_list) #[1, 2, 3]
success_function()
print('global_list after success function is', global_list) #[7, 2, 3]