Step-by-step explanation:
n1=str(input('Enter a name:'))
n2=str(input('Enter a name:'))
n3=str(input('Enter a name:'))
y=[n1,n2,n3]
y.sort()
print (y)
4.6m questions
5.9m answers