Result Size:
625 x 571
demo_type_list.py:
x = ["apple", "banana", "cherry"] #display x: print(x) #display the data type of x: print(type(x))
x
x
=
[
"apple"
,
"banana"
,
"cherry"
]
#display x:
print
(
x
)
#display the data type of x:
print
(
type
(
x
))
C:\Users\My Name>python demo_type_list.py
['apple', 'banana', 'cherry']
<class 'list'>