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

Which angles are obtuse?
Which of the following sentences uses an adverb?A. The man will learn the system.B. The lady's dress was long and lovely.C. The temperature fell below ninety ye
1/4 ÷ 3/8 Please show work
Which are true of the function f(x)=49(1/7)?select three options. A)The domain is the set of all real numbers. B) the range is the set of all real numbers. C) t
Solve the system of equations. 6x – 3y = 3 –2x + 6y = 14
Which structural organizations are always present in proteins? A- Primary and Secondary B- Secondary and Tertiary C- Tertiary and Quaternary D- Primary and Tert
Move the magnet at a relatively constant frequency back and forth through the coil. The voltage displayed is proportional to the current flowing in the coil. Wh
Angle YXZ is ____ degrees. Angle VXW is ____ degrees. Angle WXZ is _____ degrees. Angle XVW is _____ degrees. Angle XWZ is ____ degrees. Angle XZW is ____ degre
The triangle is an equilateral triangle One side is A The radius is A/2 What is the area of the center triangle?
Write the slope-intercept inequality for the graph below. If necessary, use <= for s or >= for (3,-1) (-3,-3)