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

Choose the correct verb form to complete the sentence. Each boy and girl in the class _____ a different experiment for the science fair. A. do B. does
Figura retórica que se usa para decir que una cosa es parecida o similar a otra ?
Which of the following parts of a paragraph is the section in bold most likely an example of? A)supporting evidence B) hook C) topic sentence D) conclusion
What is the LCD of 1/3 and 1/4?
Write x2 − 2x − 3 = 0 in the form (x − a)2 = b, where a and b are integers. (A) (x − 4)2 = 3 (B) (x − 3)2 = 2 (C) (x − 2)2 = 1 (D)(x − 1)2 = 4
Helpp..... How did the Roman Republic was able to conquer and expand their territory? How did the Republic eventually become an empire?
Why is the interest rate of a loan one of the most important things to consider when shopping around for loans? a. The interest rate should be ignored, because
Which of the following is a poor label for a category level file folder?
How many lines of symmetry does the letter R have?
What is one power of the state government