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

A circle has an area of cm2. What is its radius? 1 cm 2 cm cm can't be determined
The _____ is sometimes referred to as the 'between brain' in the brainstem because it borders upper and lower parts of the brain.
Costa Rica is often compared to which European country?
What is The Value Of The Problem?
Help ........................................................
What's the slope of this graph
What are the factors of 78
Is the following statement true or false? The Magna Carta was a document signed by King John of England in 1215 which limited the power of the king, promised t
A juggler is performing an act by juggling several balls. The juggler throws the balls up at an initial height of 3.9 feet with a speed of 14.8 feet per second.
Why has the Dark Thing partially blocked the children's view of Earth? A. The Mrs. W's allowed the Dark Thing to threaten Earth. B. The Dark Thing partiall