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

In a speech to high school students, a business owner makes the following statement: “Nowadays a high school diploma alone will get you nowhere in life”. Write
The building up of a country‘s military and weapons
What is a physical adaptation and what might happen if a plant that grows well in one in environment not grow well in a different environment three reasons why
What kind of changes can you make to the text in your spreadsheets cells?
what is a normal resting heart rate for adults according to the american heart association
swimming pool has a length of 30 feet, a width of 15 feet, and a depth of 4 feet. How much water can the swimming pool hold?
what is the unit rate of 78 mi on 3 gal
50 Points, Chem help?Some thermodynamic properties of ethanol are listed in the table. Thermodynamic PropertiesProperty Value c (solid) 0.5 J/g °C c (liquid)
find 4/5 of 15 please!
How do I do this I don’t get it