annakoslovsky4010 annakoslovsky4010
  • 01-01-2021
  • Computers and Technology
contestada

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

Respuesta :

Cytokine
Cytokine Cytokine
  • 01-01-2021

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.

Answer Link

Otras preguntas

The sum of three different numbers is 18. If every number is a prime number, what are the three numbers?
In a sixth-grade class, the ratio of boys to girls is 3:2. How many boys and how many girls could there be in this class? Is there more than one possible answer
a submarine at the water's surface dropped down 100 ft after thirty minutes at that depth it dove an additional 500 ft what was its depth after the second dive
how many different gametes can an RRYy parent form?
What were three of the provisions of the Compromise of 1850?
What is 10/9 closest to 0,1/2, or 1 and why
1. In "In the Shadow of War", Omovo follows the soldiers and the women most likely because he (1 point) A. Yields to the curious whims of boys his age B. hopes
last Saturday, the movieplex theater sold 1456 tickets. the theater sold 6 times as many regular-price tickets as it sold discount tickets. earl says that the e
how many different gametes can an RRYy parent form?
Algebra. View the picture and help please..