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

One of the altitudes of the parallelogram shown is the square root of 22.5. What is the other altitude?
PLEASE HELP DUE AT 2PM I'M DESPERATE, WILL GIVE BRAINLEST!! 1. When magnesium is burned in air, its mass increases. Explain why this is.2. When a match is b
the answer to the question
Select the linear equation represented in the grapha) y= 2x+3b) y= 1/2x+3c) y= 1/2x-3d) y=-2x-3​
HELPPPP!!!! WILLL GIVE BRAINLEST!!! It allows you to rent a car while yours is being repaired. a. auto replacement c. personal damage liability b. comprehensive
Classify the triangle by its sides and then by its angle
What was Churchill asking United States to do?
what's the difference between Greenfield sites and brownfield sites? help due in 3 days​
-1 + n/2 = -11 HELP THNX
If 3x−y=12, what is the value of 8x/2y?