bbperic1236
bbperic1236 bbperic1236
  • 24-11-2019
  • Computers and Technology
contestada

What happens when the following code segment executes if test.txt does not exist?:
A,B,C,D?

What happens when the following code segment executes if testtxt does not exist ABCD class=

Respuesta :

r3t40
r3t40 r3t40
  • 24-11-2019

The answer is A.

In Python, if test.txt does not exists then opening it with mode 'w' will create new empty file.

Answer Link

Otras preguntas

Consider the function f(x) = 4x2 + 5. Find the value of f(x) when x = 2
Who do you think was more of an absolute monarch: Ivan the Terrible or Peter the Great?
the search for solutions to global problems
Solve the following equation for L: P= 2L + 2W
19 is 50 percent of what number
the period from 1865 to 1900 known as the gilded age was marked by?
What motivated the nations of Europe to engage in imperialist activities?
What is the slope of the line x=-6!? What about y=6 Please explain :)
What is the solution to –4|–2x 6| = –24
Why might people want to blame a minority group for most of their country’s problems?