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

Describe the primary focus of Lawrence Kohlberg’s conventional level of moral reasoning, and describe the two stages of the conventional level.
Find the value of x [tex]\sf 6x-4=8x[/tex]
Kensington City Cafe recently introduced a new flavor of coffee. They served 28 grande cups and 33 jumbo cups of the new coffee today, which equaled a total of
omg pls help ill give you 20 points
how long after testing positive will you test negative
Which one is the answer???
The writer can improve the rebuttal by revising it to include a new claim. Note a flaw in the reasoning. State the writer’s viewpoint. Restate the essay’s topic
Which factor has a significant impact on a firearms projectile range?
Penn stacks all of his snowballs in a square pyramid. The number of snowballs, P(n), in n layers of the square pyramid is given by P(n) = P(n-1) + n^2 Which cou
The manager of a popular restaurant wants to know what types of vegetarian dishes people prefer to eat. Which sample would provide the most accurate data? 10 fr