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

In reducing communication apprehension, which approach trains you to associate public speaking with positive thoughts?
Another reason for the bystander effect is not wanting to draw negative attention to oneself. What is this called?.
Recall the word ""speed"". what is speed? what equation(s) do we have for calculating speed? how can we measure the speed of a moving object?
Once balanced, what is the coefficient of HCl in the following reaction: Mg + HCl → MgCl2 + H2 Group of answer choices A. 1 B. 2 C. 0 D. 3
What was one major effect of the American victory in the revolutionary war?
Is Felisha’s argument sound or unsound?
Which property is shown in the following statement? (46 + 17) + 3 = 46 + (17 + 3) associative property of addition commutative property of addition identity pro
Which ics functional area establishes tactics and directs all operational resources?.
Explain how the results of pasteur’s s-shaped tube experiment was important in disproving spontaneous generation and how it supported the idea that cells come f
A sponge looks lifeless, what evidence did you observe that it is an animal? how does a sponge eat?