I want to print the parameters as a list but I got this error. I know I can do this with other ways but I want to learn why this error occured. Here is the code:
def likes(*names):
list=list(names)
print(list)
likes("max","john","evan","matilda")