Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- name = input("Enter your name: ")
- score = input("Enter your score: ")
- if int(score) > 25:
- toAppend = name+" "+score+"\n"
- f = open("StudentQuiz.txt", "a")
- f.write(toAppend)
- f.close
- f = open("StudentQuiz.txt", "r")
- print(f.read())
- f.close
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement