Question #290726

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



Expert's answer

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!

LATEST TUTORIALS
APPROVED BY CLIENTS