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 prefix for discrete English
Pollution is the only way that humans can cause changes to ecosystems. True or false?
fructuse, sucrose, and starch are all examples of ? carbohydrates, lipids,nucleic acids or proteins?
Tell the value of the underlined digit 17,874,000,000 the 1 is underlined
please help me solve for
What is the reason for cleaning dishes, utensils, and food preparation surfaces?
what evidence is there to show that changing sand to glass is a chemical change
what number must be added to 15,-6,& 12 to have a mean of 5? EXPLAIN!!
lauran's shoe organizer can hold 5 pairs of shoes of each row . how many rows will lauren need need if she has 24 pairs of shoes ?
How many grams of CO2 are produced by burning 8.32g of C4H10?