9.2.8 last names codehs

Answer :

Using the knowledge of computational language in python it is possible to write a code that tries to organize the names in an assorted way and any name can be included.

Writing code in python:

names_list = []

for i in range(0, 5):

   names_list.append(input("Name: "))

sorted_last_names = sorted([name.split()[-1] for name in names_list])

print(sorted_last_names)

See moer about python at brainly.com/question/18502436

#SPJ1

View image LHMARIANATEIXEIRA

Go Question: Other Questions