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

3. What are enzymes? What is their role in digestion?
This is part of a political system in which casting a ballot in an election is required by law Term: Usatestprep Crossword Puzzle
Consider this reaction mechanism: Step 1: Mo(CO), Mo(CO)3 + CO Step 2: Mo(CO)3 + P(CH3)3+ Mo(CO) P(CH3)3 Which of these is an intermediate? o Mo(CO)6 O Mo(CO)5
What expressions are equivalent to to -56 + 28
Take a look at these two triangles. What do u notice about these two triangles? What's the same? What's different Stew
1. Why don't the elements neon and argon react with other elements to form compounds?
The volume of a cube is 216 in.³. What is the perimeter of the base of the cube?
A store is having a 1/8 off sale. What percentage of each item sold does the cashier subtract to find the sale price
When an author gives objects, concepts or animals human characteristics, emotions or abilities, that's personification. Which of the following is an example of
7: Yesterday, there were 80 problems assigned for math homework. Harry did 20% of them correctly. How many problems did Harry get right? ​