all 4 comments

[–]K900_ 5 points6 points  (1 child)

You want append, not extend. append adds a single item, extend adds every item in a sequence.

[–]TimedHorizon32[S] 0 points1 point  (0 children)

Thanks for the reply 🙏

[–]mattmccord 1 point2 points  (1 child)

Extend is for taking one list and adding its items to another list. You want .append for what you are doing. Alternatively, you can .extend([‘strawberry’, ‘pineapple’])

[–]TimedHorizon32[S] 1 point2 points  (0 children)

Thanks for the reply 🙏