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

An article in Fire Technology, 2014 (50.3) studied the effectiveness of sprinklers in fire control by the number of sprinklers that activate correctly. The rese
In what way did Christopher Columbus fail to meet concerning his voyage in 1492
Describe the relationship between the mother country and a colony under the policy of mercantilism
A.) $203,000.00 B.) $177,000.00 C.) $207,000.00 D.) $197,000.00 Swell Computers is preparing to market a new microchip to upgrade computers already purchased by
what does nathan tell polly,tidbit and amari about fort mose?
What is one reason that a person might want to be an entrepreneur? They have the security of working for a long-standing company. They can be their own boss. Th
Find the slope of the line joining the points A (–3, 2) and B (0, 4)
Which expression is the same as 8 ones and 72 thousandths?
The students in art class are designing a stained-glass window to hang in the school entryway. The window will be 3 feet tall and 4 feet wide. Here is their des
A delivery company is considering adding another vehicle to its delivery fleet; each vehicle is rented for $300 per day. Assume that the additional vehicle woul