Skip to content

How to use extend in Python?

Non_living_things = ["cars","chair","wire extender "]
Non_living_things.extend(["Paper","Computer","Motherboard "])
print(Non_living_things)
See also  How to get int input in Python?

Leave a Reply

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

This site uses Akismet to reduce spam. Learn how your comment data is processed.