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

Which of the following is formed at the mouth of a river as sediment is carried to the ocean? A. a lake B. an island C. a delta D. a bay
Corrine wrote temperatures in degrees Celsius and the equivalent temperatures in degrees Fahrenheit.
What does the Miranda rule say? Accused persons are entitled to a fair and speedy trial. A confession to a crime will not be accepted in court. Police must get
Which of the following statements about nuclear energy is true
You have been assigned a 9-digit identification number. How many identification numbers are possible?
____________is the big picture approach. But successful arguments are also tactical.
The part of the Federal Reserve having the greatest impact on our overall economy is the
need help please solve 2 log39
A circle has a radius of 13in . find the radian measure of the central angle ? that intercepts an arc of length 15in
A mixture of four gases exerts a total pressure of 860 mm Hg. Gases A and B each exert 220 mm Hg. Gas C exerts 110 mm Hg. What pressure is exerted by Gas D?