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 soccer team played 160 games and won 65 percent of them. How many games did it win ?
Find the explicit formula that produces the given sequence. 3/2, 3/4, 3/8, 3/16,...
Ryker is given the graph of the function y= 1/2x^2 - 4 . He wants to find the zeros of the function but is unable to read them exactly from the graph. Find the
what is an undefined nuclear region containing only nucleic acid
A uniform wire is cut into 4 segments. Each segment is twice as long as the earlier segment. If the shortest segment has a resistance of 4 ohm, find the resista
What Should I Know About Nigeria?
Find the remainder when 2x^4-6x^3+2x^2-x+2 is divided by x+2
What are the essential 4 parts for a civilization to develop? Explain how rivers were the source of civilization?
Which word correctly completes the sentence? The white-tailed __________ fawn followed closely by her side.  A.deer's  B.deers  C.deers'
you shoot a model rocket into the air with a speed of 18.2 m/s. now high does the rocket go?