Z oświadczeniem w Pythonie
# using with statement
with open('file_path', 'w') as file:
file.write('hello world !')
#https://www.geeksforgeeks.org/with-statement-in-python/
BIPIN KUMAR SINHA