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 ONLY sex carriers of colorblindness can be?
In the figure, j∥k and m∠2 = 117°. What is the m∠3? Enter your answer in the box. ° Line t diagonally crossing parallel lines j and k (reading from top to botto
Twenty years ago a small town in Texas had a population of 10,000. The population has increased 8% each year since then. What is the current population of this
A baby weighed 7.25 lbs at birth. At the end of 8 months, the baby weighed 2 $ % times its birth weight. How many pounds did the baby weigh at the end of 8 mont
Need help ASAP !! Ming wonders if there is a relationship between students' practicing music and their average in math class. She surveys ten of her classmates
I need some help to classify this triangle pls
The Tower of David is in the Old City of Jerusalem. Visitors at the tower noticed that the wind suddenly shifted direction early this afternoon. is it weather o
What does 4/8 - 6/9 equal?
alicia weighs 60 lbs less than her father. Their combined weights total 300 lbs at most. What is the most alicia could weigh
The Black Panthers were a feared and greatly-publicized group of militants. True False