Functions that can be used for both lists and strings?

  1. In Python, both lists and strings are "Sequence" types, so many of the built-in functions listed below will work on both of them:

  2. I recently started taking classes online and this was one of the questions in an assignment. I tried to do research about it, but nothing I found was clear enough as I am very new to this. It's challenging to learn programming without in-person help/feedback from professors or classmates. Found this subreddit, and I feel relieved and grateful for the feedback lol. Thank you for yours.

Leave a Reply

Your email address will not be published. Required fields are marked *

Author: admin