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 is not a correct way to rewrite this expression using the distributive property? (2x2 + 4x - 7)(x - 2) A. (2x2 + 4 – 7)(x) + (2x2 + 4x - 7)(x - 2) B. (2x2
Please help fast i have a exam
10 TIME REMAINING 52:28 A right triangle has a 30o angle. The leg adjacent to the 30o angle measures 25 inches. What is the length of the other leg? Round to th
Find the area of the trapezoid. Round your answer to the nearest hundredth.
Write an explicit formula for the geometric sequence below and use it to find the 9th term. 256, 64, 16, 4, . . .
Where are the electrons located in the atomic structure?
The strength of the typhoon depends on certain factors. Which of the following can weaken the typhoon? A. high humid area B. low vertical wind shear C. low temp
what are white spot on the nail​
8.2073 Set C Q.No. 5 Rewrite these sentencesappropriate relative clause in the spaces given.a. The children could not wait to get back to Namche,At last the con
need some answer for khan Academy