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 (-8.1) + (-8.9) and please explain how
Which best describes the main difference between science and pseudoscience? Science deals with beliefs, and pseudoscience deals with evidence. Science deals wit
what is a factor that can stop normal cells from growing?
round the nearest whole number 3 3/8
Please help me with this
Read the excerpt from "The Turtle.” she knows she is a part of the pond she lives in, the tall trees are her children, the birds that swim above her are tied to
Please help me with number 26, thank you
qual a importância dos movimentos sociais na geografia?
Which best identifies a key characteristic of an expository text? it is focused on a specific topic. it contains characters. it includes dialogue and characteri
How many meanings does the word pretty have? What are they? How is that meaning different from today's use? Which part of the dictionary entry did you use to fi