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

Which of the following alkyl halides will react fastest with CH3OH in an SN1 mechanism? A) I B) II C) III D) IV
23. Why did Japanese Americans generally face more restrictions than Italian or German Americans during World War II? They held more political power in the Unit
Which of the following is an idea for legislation presented to Congress? O Amendment O Case law Ordinance O Proposal
which of the following is NOT a way to solve the problem of over population? A)extend and intensify agriculture B)invest in new industries C) encourage migratio
what is the difference between molecules and ions and atom?​
Explain what happens as an object moves through each phase of matter. ASAP PLEASE HELP ME????????
What examples of “gendered” interaction did you notice regarding the ways in which women and men are socialized regarding demeanor, uses of space, starting, tou
1/3x-2=16 solve the equation
Which one sounds better "the reign of scar", or "Scar's Reign"
What is the tangent ratio of angle x?