0
What is wrong with this code :(
my_list = ['Mary', 'had', 'a', 'little', 'lamb'] def my_list(my_list): del my_list[3] my_list[3] = 'ram' print(my_list(my_list))
2 Respuestas
+ 5
you cant have a function name the same as a parameter
https://code.sololearn.com/cRtT6wFHD92D/?ref=app
+ 1
my_list = ['Mary', 'had', 'a', 'little', 'lamb']
def mylist(my_list):
del my_list[3]
my_list[3] = 'ram'
return my_list
print(mylist(my_list))