[Solved] How to join strings together within a list? [closed]


To add items to the end of a list, you want to use

foodList.append(choice);

This way you don’t need to worry about the indexing involved with .insert().

That means you either have to rearrange your if statements or get better acquainted with insert(): https://docs.python.org/2/tutorial/datastructures.html

5

solved How to join strings together within a list? [closed]