Answer to Question #290726 in Python for ggfh

Question #290726

Write a program using pseudocode to store your name, class, section in a text file.



1
Expert's answer
2022-01-26T06:57:26-0500
yourName=input("Enter your name: ")
yourClass=input("Enter your class: ")
yourSection=input("Enter your section: ")
with open('data.txt', 'w') as file:
    file.write("Name: "+yourName+"\n")
    file.write("Class: "+yourClass+"\n")
    file.write("Section: "+yourSection+"\n")

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