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

With a 12 V battery, what is the voltage drop across each resistor? In a series circuit the voltage ( DIVIDES / DOES NOT DIVIDE ) across each resistor. The volt
suppose there are 20 questions on a multiple-choice test. if 25% of the answers are choice B,how many of the answers are NOT choice B ?
a box of powdered laundry detergent contains 5.2 ounces of detergent. it takes 0.7 ounce of detergent to clean a load of laundry. how many full loads can be cle
$0.90 for 3/4 pound of bananas
By tradition, when does the presidential campaign begin? A. In September, following the national convention B. After a candidate has gained enough electoral vot
find three consecutive even numbers whose sum is 96?
The electrons generated from the Krebs cycle are transferred to ____________ and then are _______________.
if M (-4,5) is reflected over the line y=x, what are its new coordinates?
Ed bought a bottle of fancy mustard that holds 8.5 ounces .ed puts about 1/25 of mustard on each hot dog he eats.how much of the mustard is left in the Boyle af
According to Montresor, he decides to seek revenge against Fortunato because Fortunato __________. A. attacked him with his fists B. injured him more than a tho