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

explain the idea behind Woodrow Wilson's 14 point
Your Task. Revise the following statements to imply the bad news. If possible, use passive-voice verbs and subordinate clauses to further de-emphasize the bad n
Help for this math problem asap
HELP PLS! What is the power when a crane lifts a piece of pipe from the ground to a certain height, doing 15000 J of work in 25s?
It was illegal to... * A) Marry two slaves B) Teach a slave to read C) Transfer slave ownership D) None of the above
A square room used for potty training dalmatian puppies has a tiled floor with 10,201 square tiles. How many tiles are along an edge of the room?
–18c + 14 = –2c + 14, What is the value of C?
animals use pheromones to communicate
Brian purchases 245 white bouncy balls, 238 yellow bouncy balls, and 84 orange bouncy balls. He asked his son to divide them up into bags, so that each bag of b
What is the name of the aluminum ion? AA-1