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

the graph below shows how solubility changes with temperature
The numbers of seats in the first 12 rows of a high-school auditorium form an arithmetic sequence. The first row has 9 seats. The second row has 11 seats. a) Wr
Evaluate. r-s/9 for r= 26 and s =8 Simplify your​ answer
75% of a number is 4.5 cm
When sodium chloride reacts with silver nitrate, silver chloride precipitates. what mass of agcl is produced from 75.00 g of agno3?
Which factor is most likely to help move a dictatorship towards democracy? A. fascism B. a failing economy C. a stable government D. government hard-liners
What is the equation of a line that has a slope of -5 and passes through the point (0, 2)?
The lens system within a camera forms a _______ on the sensor.        A. virtual, upright image   B. real, inverted image   C. real, upright image   D.
Who investigates and prepares legislation to be considered by the House?
A certain radioactive element has a half-life of one hour. if you start with 1.0 gram of the element at noon, how much of the radioactive element will be left a