0

Want to clear how to write a program to store the given telephone details in dictionary and print all the number whose name starts with e.
Data =('Einstein':1234567896),('newton':2478965782),('Alexander':9876543216)

3
Contributors
2
Replies
18
Views
1 Month
Discussion Span
Last Post by You_2
0
Data ={'Einstein':1234567896,'newton':2478965782,'Alexander':987654321}
for names in Data.keys():
    if (names.lower()).startswith('e'):
        print(names)
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.