Write a method in python to write multiple line of text contents into a text file myfile.txt line.
Numbers=[9,18,27,36]
def writel():
f = open('myfile.txt','w')
while True:
line = raw_input('Enter line')
f.write(line)
choice = raw_input('Are there more lines')
if choice == 'N':
break
f.close()
`