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

Why did james madison agrue that checks and balances and serpation of power were needed?
The tamil-singhalese conflict in sri lanka tends to pit what two religious groups against each other?
What is the correct order of steps in muscle contraction?
What windows user interface can show you the programs that are currently active?
natural log of(x-1 divided by 4) equals 9
If a solution at pH 5 undergoes a 1000-fold increase in [OH-], what is the resulting pH?
America gift to my generation
Franklin Roosevelt was famous for his use of _____, which were an attempt to appeal directly to the American public.
Which is NOT a living part of an ecosystem? A. Fungus B. Sun C. Tree D. Fly
Which west coast city was connected to the east by the central pacific and union pacific railway?