name1_front = "Charles"
student_name = "charles", "Chelsea", "Mary"
name3_end = "Mary"
num_students = int(input('how many students in class:?'))
#open the names.txt file for reading
name_file = open('names.txt', 'r')
for count in range(1, num_students + 1):
student_name = int(input('enter the name of student:'))
#read the names to file
#close the File
print('Data read to names.txt.')
print('The student that would be front of the line is', name1_front)
print('The student that would be end of the line is', name3_end)
#call the main function