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

How many grandparents have my grandparents? who can solve it is very good on maths! it is just a lpgic problem! i know the answer :)
Suppose you ride your bicycle to the library traveling at 0.5 km/min. It takes you 25 minutes to get to 1.3 the library. How far did you travel?
Which of the allies suffered the greatest losses on D-Day
USE A NUMBER LINE TO FIND 8/9 / 8/45.
what does etymology study?
3x+y=4 2x+y=5 solve using linear combination
what is the kingdom and phylum of a euglena protest?
Differences between DNA and RNA include which of the following? (1) RNA consists of one nucleotide chain. (2) RNA contains the nitrogen base uracil instead of t
What were some events/things that caused the Great Depression?
how do day and nightat uranus's equator change asthe uranus revolves around the sun?