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

Marie is riding her bike at 15 miles per hour. What is her rate of speed in feet per second? 5.9 1.5 88 22
What is the function of mitosis in an organism like a human?
In January 2004, NASA landed exploration vehicles on Mars. Part of the descent consisted of the following stages: Stage A: Friction with the atmosphere reduced
(WILL GIVE BRAINLIEST IF YOU ANSWER ALL 4) Chemistry 1. What is the molarity of a solution containing 5 moles of NaCl in 2 liters of solution a. 2.5 b. 3 c. 7 d
1 2 3 4 5 6 7 8 9 10 TIME REMAINING 39:46 Yuto and Lian are at train stations 1,880 kilometers apart. Yuto boards a train heading east at an average sp
Which of the numbers in each pair is farther to the left on the number line? a. 305 and 17 b. 187 and 900 c. 16 and 46 d. 157,019 and 149,984
the shopping cart is moving forward. What force moves it forward? The force of the man pushing on the handle.The force of the wheels pushing on the floor.The fo
What changes did Wall Street contribute to the changes of the 1920s?
Solve (-18^3+17x+6)/(3x+2)
i dont know whats the answer can someone help me ?