Discover answers to your questions with Westonci.ca, the leading Q&A platform that connects you with knowledgeable experts. Get accurate and detailed answers to your questions from a dedicated community of experts on our Q&A platform. Join our Q&A platform to connect with experts dedicated to providing accurate answers to your questions in various fields.

Write a program that opens an output file with the filename my_name.txt, writes your name to the file, then closes the file. python

Sagot :

f = open("my_name.txt", "w")

f.write("Your name here")

f.close()

You just have to change Your name here to your actual name. I wrote my code in python 3.8. I hope this helps.