a = input ("hello pls type y")
if a == "y":
    file = open('malli.txt','a') 
    file.write("i am malli") 
    file.close() 
a = input ("hello pls type y")
if a == "y":
    file = open('malli.txt','a') 
    file.write("i am malli") 
    file.close() 