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 does a democratic guarantee the rights and freedom of people​
How I can answer this question, NO LINKS, If you answer correctly I will give u brainliest!
A circle with centre at the point (2,-1) passes through the point A at (4,-5).(a) Find an equation for the circle C.(b) Find an equation of the tangent to the
___ are categorized by structure and function; ___ are categorized by their support roles. Dendrites; axons Cell bodies; myelin Neurons; glia Afferent cells; Ef
List 2 advantages Cryptocurrency have over regular bank transactions
I need help with my Hindi homework
Doris drives at a steady speed of 40 km/h. If she sets off at 1.35pm and arrives at 3.50pm, how far has she travelled?
According to the property Va , which choice is equivalent to the quotient 16 below? 125 5 O A. -5 B. 2 O C. 5 D. 25
Which u.s. state grows most of the country’s red roses?
solve for m. m+14<−125 m<−11320 m>−11320 m<−1320 m>−1320