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

Find x in the given figure.
Which of the following is NOT a function of water in the body? a. helps to regulate nervous impulses and muscle contraction b. helps to transport nutrients and
Does (2,1 ) make the equation true? 2x+7y>=10
• It allowed cotton Lint to be produced quickly and efficiently. • It made the United States the leading producer of cotton. • It increased the demand for slave
f(x) = 1/x g(x) = x - 4 Can you evaluate (gof)(0)? Explain why or why not.
The emergent property of "life" appears at the level of the ____, when many molecules become organized. a. population b. atom c. organism d. cell
Carolyn is the network administrator for a small financial services company and is responsible for controlling access to the resources on her network. Which tec
Jim places ​$10,000 in a bank account that pays 9.8​% compounded continuously. After 2 ​years, will he have enough money to buy a car that costs ​$12 comma 160​
help me??? please????
Lithium ion salts were originally found in Seven-Up® drinks. How many electrons does Li atom lose to become an ion?