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

True or False? Psychology is considered a social science, yet it has foundations in the natural sciences.
At least 20 to 30 minutes of sunlight exposure 3 times per week should provide enough vitamin _____. a. A b. C c. D d. K
Write 9.79 x 10^5 in standard notation. a. 9,790,000 b. 979,000 c. 97,900,000 d. 97,900
What is the sum of 667 and 23? A. 29 B. 690 C. 644 D. 15,341
What is a living will?
Which of the following is NOT a narcotic drug? A. codeine B. morphine C. nicotine D. oxycodone
The unit rate of the glasses was $1.80 per glass. How much did Malcom spend on glasses?
The sum of three consecutive integers is -165, What is the closest to zero?
Which dimension deals with common sense and decision-making? physical spiritual social intellectual
one day, only 47 students came to practice. there were 5students marching in first row. how could the rest of students be arranged to make equal rows?