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

sending an email to a client to ask for certain data is an example of a
A debate question, should recess be allowed. give me 10 reasons ASAP
If Log x (1 / 8) = - 3 / 2, then x is equal to. A. - 4 B. 4 C. 1 / 4 D: 0
Form 2120 , or multiple support declaration must be filed with the return of the taxpayer who is?
A customer at a self -storage facility was offered a choice between a storage unit shaped like a cube and another unit is 2 feet longer,5 feet shorter than the
Find all the zeros of F(x)= 4x^4-4x^3-11x^2+6x+9 given that -1 is a zero with a multiplicity of 2
in Florida the fine for going over 5 mph in a school zone results in a fine of how much
Select the correct answer. Cameron works for his state’s highway patrol agency. His role in the agency is that of a chief executive. Which official term describ
What is the scientific name of Seri Silk worm?​
Hardly one to fault others, Thaddeus surprised his colleagues when he began _____ even their most trivial mistakes.