List into text file python : I'm a beginner at python and I wanna ask how to make an array into a text file without the '[""]' because I can already make it into a text file but it appeares with the [""]. Thanks.



    entries =[]
    studentID =raw_input("Student ID: ")
    subjectChoose = raw_input("Subject Code: ")
    entries.append(subjectChoose)

    p = open(entries + '.txt' , 'w')
    p.write(str(studentID) + "\n" )
    p.close()
    f = open(studentID + '.txt', 'w')
    f.write(str(entries) + "\n ")
    f.close() 
