List in Python can hold elements of same type only. True or False?
This is not true. Python’s List can hold elements of different types inside of it.
For example, my_list = [1, 2, 3.14, “Some string”, False]

Follow CodeGalaxy

Mobile Beta

Get it on Google Play
Send Feedback
Keep exploring
Python quizzes
Sign Up Now
or Subscribe for future quizzes