Advertisement
Guest User

Untitled

a guest
Nov 15th, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. name = input("Enter your name: ")
  2. score = input("Enter your score: ")
  3. if int(score) > 25:
  4. toAppend = name+" "+score+"\n"
  5. f = open("StudentQuiz.txt", "a")
  6. f.write(toAppend)
  7. f.close
  8. f = open("StudentQuiz.txt", "r")
  9. print(f.read())
  10. f.close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement