Question: 2.Write a python program to take 5 names as input from the user and store it in a list And remove if there are any

2.Write a python program to take 5 names as input from the user and store it in a list And remove if there are any spaces in the name, make the first part of the name uppercase, rest of the name lowercase, remove the last two letters, sort the list in ascending order and give the indexing to the name while printing. - Example Input = Mahadev naiDU Parimi Abhishek kumar Output =1. ABHISHEKkum 2. MAHADEVnaidupari
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
