find first char in a string python code example
Example 1: python get first character of string
string = 'This is a string'
print(string[0])
#output: 'T'
Example 2: how to find the first letter of an item in python
mylist[0][0] # get the first character from the first item in the list