Return first char

mail@pastecode.io avatar
unknown
python
10 months ago
102 B
2
Indexable
Never
char = input('Enter: ')
def first_character(char):
    return(char[0])
print(first_character(char))