+ 2
Python lists
Can we store values of different data types in one list?
2 Answers
+ 6
Yeah:
list = ["words", 3]
print(list[0])
print(list[1])
+ 2
Yes see the example below:
x = ["this_is_word_1", 3]
print(x(0))
print(x(1))
Can we store values of different data types in one list?