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 creepiest sounding scale? What scale would u use for writing creepy music in other words
Does an owl have a backbone?
Forget the motor When im on the boat Think of the best time To buy a new coat What am I......?
What is the creepiest sounding scale? What scale would u use for writing creepy music in other words
Thelma spent 1/6 of her weekly allowance on dog toys.  1/4 on a dog collar and 1/3 on dog food.  What fraction of her weekly allowance is left
What were the contributions of the Harappan civilization?
What is the creepiest sounding scale? What scale would u use for writing creepy music in other words
A blue rope is 3 times the length as a red rope. A green rope is 5 times as log as the blue rope of the total length of all 3 ropes equals 508.25m what is the l
What were the contributions of the Harappan civilization?
Does an owl have a backbone?