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

Write an equation of the line that has a slope of 3 and contains the point (2,5) in point-slope form.
If a line is perpendicular to another, and one slope is -2, what is the slope of the other line
How was the information passed down between generations of Mayans?
The simplified expression e2t + 2 + e−2t inside the radical can be re-written as
Please show the steps in solving B=5/7(F-38) solve for F
One card is randomly selected from a deck of cards. find the odds against drawing a blackblack fivefive.
List of cities in michigan by population
Motor nerve neuropathy is characterized by:
How many atoms are equal to 1.5 moles of helium
What's the answer to 2x-4y=20? Solve the literal equation for y.