a = []
for i in range (5):
a.append(input ("Enter only one character: "))
a.sort()
print(a)
a.reverse()
print(a)
This is my code and I don't know how to detect a single character. If a user input two character they will get an error but if the user input single character the input item will be in the list.