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

How many minutes are in 36 hours?
Solving systems by elimination: 2x + 4y = -4 3x + 5y = -3 Please show me your work so I can do the rest myself. Thanks!
What is Sir Francis Drake hardships
Does the depth of a pan affect how water freezes?
Does the depth of a pan affect how water freezes?
Trying to translate word problems. Five times the sum of 3 and twice some number is 70. what is the number?
A 1 digit number and a 3 digit number have a sum of 205.  The same two number have a difference of 195, a product of 1,000 and a quotient of 40.  What are the t
Rewrite the function c(x) =9(x+3) using the distributive property
is it possible for a distance versus-time graph to be a vertical line?
Rewrite the function c(x) =9(x+3) using the distributive property