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

If x=6+y and x+y=162 then what are x and y
If you took DNA samples from two strangers on a street how similar would their DNA be ?
How do I solve this problem. A person invested $8000 for 1 year, part at 4%, part at 11%, and the remainder at 13%. The total annual income from these investmen
what is mecca and why is it special to muslims
Which of the following statements, if true, would support evolution and the idea that all life comes from a common ancestor? Select all of the boxes that apply.
Can some one summarize this sentence pllllease ASAP white students were more likely to be disciplined for provable, documentable offenses — smoking, vandalism,
Many believe that complete security is infeasible. Therefore, we are left with incomplete security. Generally, the greater the security, the greater the cost. D
Analyze the tone of the short story "in another country". Which specific words influence the tone of the story? How does the tone impact you overall understandi
What would happen? Why?
During the reign of the Tang dynasty, China ruled over and had great influence on the architecture and military systems of many countries including the kingdoms