Here is the list:
['hello\n', 'this is an example of a file for CS149\n', '1\n', '2\n']
hello
this is an example of a file for CS149
1
2
The type of whole is <class 'list'> and the length of whole is 4
An entry in the list is of <class 'str'> and the 2nd entry is this is an example of a file for CS149
Converting to int and summing: 3
Capitalizing a string of the list: HELLO
thi2