Write a Python program which will take a list of Names from the user. Create a dictionary from those Names that will hold the names in alphabetical manner. [Hint: You might need to use the “sorted”...


Write a Python program which will take a list of Names from the user.
Create a dictionary from those Names that will hold the names in
alphabetical manner.
[Hint: You might need to use the “sorted” method.]
Sample Input:
Afif Rahim Zubayer Ronaldo Zebin Akram Rakib Bob Mike
Sample Output:
{"A" : ["Afif", "Akram"], "B" : ["Bob"], "M" : ["Mike"],  "R" :
["Rahim", "Ronaldo" , "Rakib"], "Z" : ["Zubayer", "Zebin"]}



Jun 05, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here