creating list in python
Creating list in python
Code:
#list example
list1=["a","b","c","d","e"]
print (list1)
print("\n data type for list1:\t",type(list1))
Output:
['a', 'b', 'c', 'd', 'e']
data type for list1: <class 'list'>Code:
#list example
list1=["a","b","c","d","e"]
print (list1)
print("\n data type for list1:\t",type(list1))
Output:
['a', 'b', 'c', 'd', 'e']
data type for list1: <class 'list'>
Comments
Post a Comment