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

A graph depicts force versus position. What represents the work done by the force over the given displacement? A. The work done is equal to the product of the m
find the amplitude, period, and phase shift of the function defined by: y=3-2cos(3x+pi)
wats the 60% off a prize that is $20.00
lara has a tin of peanuts cashews and pecans she will pick a second nut without looking. how many outcomes are there for her two picks?
How would you define psychological realism?
Two diverging light rays, originating from the same point, have an angle of 5° between them. After the rays reflect from a plane mirror, what is the angle betwe
what is force ?is it desirable or undesirable?
Tennis balls with a diameter of 2.5 in. are packaged 3 to a can. The can is a cylinder. Find the volume of the space in the can that is not occupied by tennis b
let f(x)=2x-3 and g(x)= -x^2-1 find ( g o f) (x)
Tennis balls with a diameter of 2.5 in. are packaged 3 to a can. The can is a cylinder. Find the volume of the space in the can that is not occupied by tennis b