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

people who give donations to worthy causes are know as
which expression is equivalent to sin7pi/6? A. sinpi/6 B. sin5pi/6 C. sin5pi/3 D. sin11pi/6
Read the excerpt from Harriet Tubman a life of toil and triumph why was the reward offered for Tubman’s capture
How many high and low tides occur each day
The average power dissipated by a resistor connected to a sinusoidal emf is 5.0 W. a) What is Pavg if the resistance R is doubled? Pavg=IR2R Pavg=IR22R ∴=IR2
Can someone help with this question? Thanks!
please please help me out now​
Survey question: What is your favorite sport? The sample is chosen from people attending a soccer game. Is this biased or unbiased?​
The easiest component of biodiversity to measure is
Samira needs 22 quarts of lemonade to fill a dispenser. She plans to buy 7 jugs of lemonade. Each jug contains 3.3 quarts. Is this a reasonable plan?A . No, it