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

What is a major theme in "Because I could not stop for death"?
Which of the following is evidence of the past existence of glaciers?
How did western imperialism spread through africa and asia so quickly?
When two carbohydrates monomers are linked, what is formed
Name of the first u.s military force sent to europe
Why were the Alien and Sedition Acts controversial? A) They were passed over President Adams' veto. B) Many thought they violated the Constitution. C) They fa
Which of these features are characteristics of a successful treatment option
Which graph represents the inequality y<−1+2x?
Which line from "I'm Not Thirteen Yet" shows Jamie’s excitement as she plays soccer? I saw the ball making its way toward me and went for it. I played forward a
which resources are found in Brazil's rain forests