Advertisement
kitch190

Untitled

Mar 2nd, 2015
233
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. x = 1
  2. while x == 1:
  3. print ("Enter name of student")
  4. studentName = input()
  5. print ("Enter class of student")
  6. studentClass = input()
  7. print ("Enter score of student")
  8. studentScore = input()
  9. dat = ['Name: '+ studentName, 'Score: ' + studentScore]
  10. if studentClass == 'a' or studentClass == 'A':
  11. file = open("class_a_results.txt", "a")
  12. file.(dat \n)
  13. file.close()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement