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

Source list: 1.You are researching summer adventure opportunities for teens that help others. You find an article published in the Atlantic Monthly. It is abou
When performing rescue breathing, be sure t?
Which one is it? A. B. C. or D.
What's the difference between using f(2) and f(x)=2?
Choose the equation that does not represent the function of the graph shown below. y = 3 sin 8x y = -3 sin 8(x + pi) y = 3 sin 8(x - pi/2) y = -3 sin 8x
You should do all of the following when completing a job application except _____.
HELP !!!!! Let f(x) = 2x, g(x) = 2x2 – x, and h(x) = 3x. Lola finds the composition [f o g o h](x) as shown below. What error did Lola make? = 2[2(3x)2 – 3x] =
Can somebody help me with Chemistry - States of Matter, Phase Changes, and Stoichiometry, please? ? look at the document below, all the questions are there. T
The table below represents a linear function f(x) and the equation represents a function g(x): x f(x) -1 -9 0 -1 1 7 g(x)
(5-x)(5+x)=(x-4)²-7 Helpp((