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

Juanita runs every third day and swims every fifth day.If Juanita runs and swims today,in how many days will she run and swim again on the same day?
how do you solve 6x minus 2 equals 12x plus 7
4 L 342 mL + 2L 214 mL =
if i have 2 apple and get 3 more then lose 2 how many do i have left
A recipe that makes 6 servings calls for 1/2 cup of butter. Nancy modifies the recipe so that it can serve 8 How many cups of butter does Nancy need?
Evolution _____. A) happens very quickly B) happens on a genetic level C) happens whenever an organism changes D) is the same as growth and metamorphosis
What animals may be found in each zone?—be specific on listing them •Upper •Middle •Lower
which of these events in history does seidman say occurred in direct violation of the constitution? a. the building of the white house b. Formation of the supre
how document c help you answer how did the nile shape ancient Egypt
which act stated that parliament did have right to tax colonist