Given following code: with open(‘ships.txt’,’r’) as f: ships…
Given following code: with open(‘ships.txt’,’r’) as f: ships = list(f) # ??? You inspect the file ships.txt and note that it contains the following lines: Pinta Nina Santa Maria You also note that the program prints out ‘Nina”. What is most likely the missing line of code (indicated by ???)?
Read Details