Seasons

Report a typo

There's a file seasons.txt that looks like this:

Spring
Summer
Autumn
Winter

We implemented the following code:

seasons_file = open('seasons.txt', 'r', encoding='utf-8')

seasons = seasons_file.readlines()
favorite_season = seasons[2]

seasons_file.close()

What will be the value of the variable favorite_season? Write it below without quotation marks. Remember that the default newline character is '\n'.

Enter a short text
___

Create a free account to access the full topic