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)
3.5m questions
4.5m answers