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

It says to solve for x but I don’t know how to do it
There are 8 streets to be named after 8 tree types. Ash, Birch, Elm, Fir, Maple, Pine, Spruce, and Willow. A city planner randomly selects the street names from
Investigar acerca de los siguientes aspectos de la tecnología: ¿Hasta qué punto los video juegos ayudan a desarrollar la creatividad? ¿Supone el fraude de iden
4. Circumstances of a speech
The cheerleading squad at Oxford High School had 20 members with the old coach. Now, with the new coach, there are 25 members on the squad. What is the percent
Was Africa and Arabia one Continant at one time in geographic history?
List the six kingdoms in the 6-kingdom classification systerinformation: (1) cell type (2) cell organizationClassification system. For each kingdom, give the fo
3x2 - 5x + 6) + (9 - 8x - 4x2)
Steve travels 5 times as fast as Kevin. Traveling in opposite directions, they are 390 miles apart after 5 hours. Find their rates of travel.
If you add twice to 6 times a number, do you get a number that is 6 times greater than 7 times the successor?​