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'>






Comments

Popular posts from this blog

Tuple using Python: