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

use the following terms in a sentence about the civil war that demonstrate your understanding of the term ( a. border state b. enlist) i need help fas
Quitiont of 15/16 by 3/10
Determine if x-5 is a factor of -2x^3+14x^2+24x+20, how do you know? a. no, because the remainder is -460 b. no, because the remainder is 0 c. yes, because the
_____ is an OCD-related disorder that involves a distressing preoccupation with imagined or slight flaws in one's physical appearance.
president Woodrow Wilson's plan for the post-war world was called what?
which prokaryotic organism shows up as old as the oldest fossils A. Archaea B. Echinoderms C. Algae D. Cyanobacteria
HELLLPPPPPPP.........................MEEE!!!!!!!!! PLS Which of these is true for the two poles of a magnet? A)Like poles attract each other. Unlike poles attra
How does tripling the side lengths of a right triangle efect its area
Why did Kate Shelley perform her heroic deeds? A. She knew that someone would one day write a story about her heroism. B. She thought that her father was
A carrot has 55 grams of sugar per serving. A banana has 1515 grams of sugar per serving. Which statement is true?