I am running the following block of code:
def update_contact_number(contacts, contact_name, old_number, new_number):
if contact_name in contacts:
lis = list(contacts[contact_name].values())
lis[0]=new_number
contacts[contact_name].values()=tuple(lis)
return True
else:
return False
when I get this error:
SyntaxError: can't assign to function call.
Can anyone come up with a solution and the possible problem?