Answer to Question #180247 in C for jhon

Question #180247

Write a program that will sort a list of strings (names of person) enter by the user given the value of n names.


1
Expert's answer
2021-04-11T00:01:20-0400
n = int(input('How many names?'))

ls = []
for j in range(n):
   wrk = input('{}) '.format(j+1))
   ls.append(wrk)

ls.sort()
print(ls)

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS