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

8. Which of the following is the best hypothesis? _______ a. Will fertilizer make my lawn grow more? b. I think that ice cream melts faster than ice. c. If a ba
HELP FAST 15 POINTS a)4x+2y=8 b)4x-2y=8 c)2x+y=4 d)4x-2y=2
PLZ HELP ITS DUE TODAY!!!!!!
Activity 2 > You decide to enter the 3D cinema competition to win free passes. You will need to plan what you want to say on the entry form. Think about why
Correctly match up the nations evolved wobble 1 in 1914 - 15 which nations are part of the allies and which report of the central powers. 1 allies2 central powe
Brian asked a group of people their favourite holiday destination. The results are summarised in the table. Destination UK Europe USA Africa Other Frequen
wap to calculate area and circumference of a circle​
write a letter to Doraemon praising him for his good deeds​
find the x and y intercepts of the graph of the function A. x intercepts (8,0) y intercepts (0,1/2) B. x intercepts none y intercepts (0,1/2) C. x intercepts (1
How can we reach Dulikhel? I didn't understand this from book ​