Consider the following Python program. fin = open('words.txt') for line in fin: word =…
- User
Consider the following Python program.
fin = open('words.txt') for line in fin: word = line.strip() print(word) What does the program loop over?
Question 22 Select one: a.
Lines in a file b.
Lines in a list c.
Words in a dictionary d.
Words in a list e.
Words in a string
Assistant
a. Lines in a file