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

If one of the roots of the equation x²- 4x + k=0exceeds the other by 2, then find the roots and determine the value of k
This event almost led to Nuclear War between Soviet Union and United States
Which peace treaty officially ended world war 1
Which of the following is NOT an example of homeostasis? red blood cells transferring carbon dioxide to the lungs to be exhaled the digestive system breaking f
Please help with my races strategy will give brainlist (Please follow the sentences rules)
WILL GIVE BRAINLIEST How much heat energy is absorbed when 94.0 g of water is heated from 5.0C to 29.5C? Show your work.
What figurative language is, “it is burning” - talking about the heat outside, or how could I reword that?-
What is the thesis statement of the research report Life On Mars
Periodic vs.Perpetual Inventory Accounting Multiple Choice Periodic Inventory Accounting results in a higher Cost of Goods Sold than Perpetual Inventory Account
Explain: How does pH vary with hydronium ion and hydroxide ion concentrations in water?