Lees de code zorgvuldig
import os, tempfile
with tempfile.TemporaryDirectory() as d:
path = os.path.join(d, "scratch.txt")
with open(path, "w") as f:
f.write("hi")
print(os.path.exists(path))
print(os.path.exists(path))Wat zal het programma uitprinten? Schrijf hier: