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

Where did the Greeks believe that most gods lived
Where did the Greeks believe that most gods lived
List all the commonwealth games mascots from 1982-2014
Find 4 consecutive even integers where the product of the two smaller numbers is 72 less than the product of the two larger numbers?
how do u find the area of a triangle
simplify (1/x) + (1/(x+h)
David helped his father stock the pond with baby catfish and blue gill. They put in a total of 75 fish. If the number of blue gill was doubled and the number of
Which expression can be used to change 75 kilometers per hour to meters per minute?
Which characteristic is shared by sonnets and haiku?
simplify (1/x) + (1/(x+h)