Help me find the error
Code: import re m=int(input("Enter the total numbers of email id: ")) k=[] for i in range(m): e=input("Email: ") k.append(e) for i in range(m): gmail[] yahoo[] if "gmail.com" in k[i]: gmail.append(k[i]) elif "yahoo.com" in k[i]: yahoo.append(k[i]) print("The list of email id's belongs to gmail") print(gmail) print("The list of email id's belongs to yahoo") print(yahoo) Sample input: Enter the total numbers of email id: 2 Email: sanoj@gmail.com Email: sanoj@yahoo.com Expecting output: The list of email id's belongs to gmail ['sanoj@gmail.com'] The list of email id's belongs to yahoo ['sanoj@yahoo.com']