subject

The following code segment is supposed to read all of the lines from test. txt and save them in copy. txt. infile = open("test. txt", "r") outfile = open("copy. txt", "w") line = infile. readline() outfile. write(line) line = infile. readline() infile. close() outfile. close() which line of code should be placed in the blank to achieve this goal?

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 01:40
Kali, a python programmer, is using the turtle module to write the word “hello.” which code should she use to indicate the location to begin writing the word? a # pick up the turtle and move it to its starting location. b penup(-100, 200) goto() pendown() c penup() goto(-100, 200) pendown() d # pick up the turtle and move it to (-100, 200)
Answers: 2
question
Computers and Technology, 22.06.2019 11:30
Awell-diversified portfolio needs about 20-25 stocks from different categories is this true or false?
Answers: 2
question
Computers and Technology, 22.06.2019 19:20
Write a program that prompts the user to input a string. the program then uses the function substr to remove all the vowels from the string. for example, if str = "there", then after removing all the vowels, str = "thr". after removing all the vowels, output the string. your program must contain a function to remove all the vowels and a function to determine whether a character is a vowel.
Answers: 2
question
Computers and Technology, 23.06.2019 09:30
Why is an outfitting a workspace with video games in a technology development company considered a strategic use of money
Answers: 1
You know the right answer?
The following code segment is supposed to read all of the lines from test. txt and save them in copy...
Questions
question
Mathematics, 12.10.2019 17:50
question
Mathematics, 12.10.2019 17:50
Questions on the website: 13722367