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

Write each rational numbe as a fraction
What does Queen Esther ask of the king the second time she appears before him?
What is the meaning of zero in "3 miles below sea level" (we are doing integers)
what subjects other than math that use ratios
what percent increase is it to go from $1.25 to $1.50?
What were three of the provisions of the Compromise of 1850?
Why did President Truman veto the Taft-Hartley Act?
The Colorado River is 1,450 miles long. This is 752 miles shorter than the Mississippi River. Write an equation that describes this relationship.
What is the distrutive property for 9(x+5+8y)
What type of government combines both unitary and confederal political systems?