Aug-12-2019, 01:15 AM
I believe the problem is line 21:
for pirates in pirates:
. You use the plural form for both the looping variable and the thing looped over. So at the end, pirates is equal to the last pirate: 'Edward Blackbeard Teach'. So you should switch that loop to:for pirate in pirates: print piratesYou should also switch to Python 3. At the end of the year support for 2.7 will stop.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures