Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- x = 1
- while x == 1:
- print ("Enter name of student")
- studentName = input()
- print ("Enter class of student")
- studentClass = input()
- print ("Enter score of student")
- studentScore = input()
- dat = ['Name: '+ studentName, 'Score: ' + studentScore]
- if studentClass == 'a' or studentClass == 'A':
- file = open("class_a_results.txt", "a")
- file.(dat \n)
- file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement