Extract the first string element
Return the first letter of the given string.
Sample Code:
def firstLetter(str):
# Enter your logic here...
Examples:
Input: 'Codetisan'
Output: 'C'
Explanation: 'C' element has an index of 0.
Input: ' Python'
Output: ' '
Explanation: ' ' element has an index of 0.