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

During the year, the following selected transactions affecting stockholders' equity occurred for Navajo Corporation: a. Feb. 1 Repurchased 160 shares of the com
Marcella is aware that if they deliver their speech standing too far to one side of the stage, or standing too closely to the back wall, or standing too closely
Which of the following is equal to 2? A. 6 + 4 ÷ (2 + 1) × 3 B. (6 + 4 ÷ 2) – 1 × 3 C. 6 + (4 ÷ 2) + 1 × 3 D. (6 + 4) ÷ 2 – 1 × 3
iannnskik jan am aiajnd d anakjkkskw
Convert 22 days to weeks and days. 22 days= Convert 454 minutes to hours and minutes. 454 minutes = Convert 4 years and 4 months to months. 4 years and 4 month
What is the equation for -19 = b - 6
Find BC. Round to the nearest tenth. B 6 13 91°
Which set of numbers contains only rational numbers? O A. -9 {/8, -77, 0.38, 2' V3 B. 4 {V12, 0.206, -6, 6, -11} {9.99,5 -11,4,5) O D. {VT6, 8, 2.5x 104, 0,03
Please help me with this!!!
i need help) (only the answer) *links and wrong answers will be reorted*