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 histogram is better for _____________ data and a frequency polygon is better for ________data.
This quote by Sergei Rachmaninoff --"They have not the capacity to make their works exalt-- they meditate, protest, analyze, reason, calculate and brood, but th
The concept that eart present landscape is due to gradual geoloic process was propssed by?
How can a utility bill be passed through to the tenant if submetering proves infeasible ...?
Including culture as a subject variable in a study helps improve the ____ validity of the study.
The concept that eart present landscape is due to gradual geoloic process was propssed by?
A nurse is completing an apgar score on a newborn. what is assessed when obtaining an apgar score? what does a score of 5 indicate?
Why do you think there is such social pressure to keep sports separate from politics? what other spheres of society do we tend to think of as devoid of politics
Ranges are 6-mile increments measured (and described) from the north-south meridian running:_____.
Steamed rice is an integral part of meals in southeast asia. thus, steamed rice is an example of a(n) _____ food of southeast asia. group of answer choices