Answer to Question #291091 in Python for usmi

Question #291091

Write a program that takes multiple student marks as input. If a user enters negative

marks, the program writes all marks to a file called “marks.txt” and exits.


1
Expert's answer
2022-01-27T10:48:27-0500
i = 0 



while i:
    marks = int('Enter marks of students here: ')
    file1 = open('class_mark.txt', 'w')
    file1.write(marks)
    if marks < 0:
        break
        

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS