Answers for "print for letter of elements in list python"

5

how to print a char of element in list in pyhton

#declaring list
myList=[12,'Hello','World!']
#for strings
print(myList[1][2]) # output --> l
#for numbers
temp=str(myList[0])
print(temp[1]) # output --> 2
Posted by: Guest on September-15-2020

Code answers related to "print for letter of elements in list python"

Python Answers by Framework

Browse Popular Code Answers by Language