with open Flashcards

1
Q

with open(“Nizza.jpg”,”rb”) as eredeti:
with open(“Nizza_masolat.jpg”, “wb”) as masolat:
darab_meret = 4500
darab = eredeti.read(darab_meret)
print(darab)

A

while len(darab) > 0:
masolat.write(darab)
darab = eredeti.read(darab_meret)
print(len(darab))

How well did you know this?
1
Not at all
2
3
4
5
Perfectly