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

Describe a real-world situation that can be represented by the product 8(-20). Then find the product and explain what the product means in terms of the real-wor
What is the type of tissue that consist of living cells surrounding by an extracellular matrix?
oceanside bike rental shop charges 14 dollars plus 9 dollars an hour for renting a bike. joan paid 86 dollars to rent a bike . how many hours did she pay to hav
Number like 10,100,1000,and so on are called____
How do you solve X+y=11 Xy=30
how do you solve 6x minus 2 equals 12x plus 7
If you deposit $800 in a savings account that earns simple interest at a pate of 1.5% per year, how much interest will you have earned after 5 years?
What is the closest relative of canis lupus?
Leah has some lessons stan's driving school. The total cost of the lessons is £305.50
How does endosymbiosis play A role in evolution of prokaryotes and eukaryotes and how are mitochondria important to this evolution?