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

The standard form of the equation of a parabola x=y^2-4y+20 what is the vertex form of the equation
Darius is learning the names of two or three new objects or events every day. this rapid increase in vocabulary is referred to as the __________ explosion.
Kathy has found that she must consume 2,000 calories a day to reach her health goals and she has been following this carefully, but lately she has been feeling
every summer, Timmy and his buddies run a fencing and mowing business. for a reasonable price, they will mow the lawn in your backyard and put up a quality fenc
What gas diffuses faster helium or neon?
Describe two example of how an understanding of genetics is making new fields of health care treatment or diagnosis)possible
A certain recipe ask for 6/7 cup of granola. How much is needed to make 4/5 of a recipe?
In addition to an all-round white light, what light(s) must power-driven vessels less than 65.6 feet (20 meters) long exhibit when underway between sunset and s
Did you detect a difference in the radiation levels between the intact smoke detector and the americium-241 removed from the smoke detector? if so why do you th
please help with this Spanish question