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

Find y to the nearest hundreds place
solve the system of equations. y=3x-1 and y=-2x+9. PLEASE SHOW WORK
if u can vote in an election for a governor representative without political or religious restriction, where do you most likely live? A.isreal B.jordan C.lebano
Care repairs are less than or equal to $500
Question 1 Translate: I have to eat. Question 2 Translate: One must study. Question 3 To make a good grade, one must pay attention. Para sacar una buena nota
Mr. Piper is driving Peter, Roddy, and Scott home from school. All of them want to ride in the front seat. How can he make a fair decision about who rides in th
What is the effect on the graph of the function f(x) = x2 when f(x) is changed to f(x) − 4?
Which sentences are punctuated correctly? Check all that apply.The dog (that was barking) was a St. Bernard.That sculpture which is made of scrap metal was desi
Plz help! After the first battle of bull run general Ivan Mc Dowell was removed from command of the union army he was replaced by _____. A. General Ulysses S. G
Jennifer taking a quiz and has answered 13 questions so far. If there are 25 questions on Jennifer test, how many questions does she have left to answer