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

For all values of x, which expression is equivalent to 4(5x+3)-4x? A) 12x+12 B) 16x+12 C) 16x+16 D) 32x+12
Advanced standing program for Dominican Republic graduated dentists but us citizen?
Please answer these sanskrit questions correctly and i'll mark you as brainlilest! Thank you :)
How did the practice of Legalism improve life for Chinese people?
[tex]15x^{2} +x-6=0[/tex]
135 item was marked down by 30%
Is this a sentence fragment (is this a wrong(incomplete) sentence? We trekked up the mountain with thirty-pound packs on our backs.
What is the answer for r if the equation is
Which is a step when multiplying or dividing numbers written in scientific notation? A. Add or subtract the exponents as needed B. Express the numbers in standa
Determine whether the lines below are parallel, perpendicular, or neither. * -2x + 5 = 15 5x+2y=12