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 nutrient would you take to maintain healthy eyesight?
Igneous rocks with an andesitic composition ________.
Sharon is 54 inches tall. tree in her backyard is five times as tall as she is. the floor of her treehouse is at a height that is twice as tall as she is. What
Explain how to subtract 247 from538
2. The four main systems of the Earth are
what is 3a b2 b3 4b2 4 5a identify like terms
Which of the following is not presented as a key component to understanding a memoir? a. supporting details b. theme c. key ideas d. setting
when h has the value 6 calculate 6h - 7
Who can tell me what world war || means
What does the product of any whole-number factor multiplied by 100 always have ? Explain