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 the surface area of the rectangular pyramid below? (Image) A. 386.9 ft2 B. 593.8 ft2 C. 639.4 ft2 D. 1,053.2 ft2
At the beginning of the film, Mulan was reciting a litany of what a good daughter should be: "quiet, demure, graceful, polite, delicate, refined, poised and pun
Who was Stokely Carmichael?
Explain the role of the competition commission?
Someone who wants to learn a skilled trade on the job should consider
an example of people adapting to their environment is
How do most people think the first Indians got to America from Asia
A star's absolute magnitude is equivalent to the apparent magnitude that a star would have at a distance of _____ parsecs from the Sun. A. 1 B. 10 C. 100 D
Rilke referred to his poems as “_____ poems.”
if two sides of a triangle are 10 units and 13 units,a possible third side for the could be?