It worked! Our Python program successfully wrote to text.txt.
text.txt
Now you try: write any data you like to a file called text.txt using with…as. Give your file object the usual name: my_file.
with
as
my_file