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)

Data ={'Einstein':1234567896,'newton':2478965782,'Alexander':987654321}
for names in Data.keys():
    if (names.lower()).startswith('e'):
        print(names)

Try making Data as an array then turn every string into Uppercase for storing so you wont have Any problems with upper and lower case then use If..Else to check if exist and then print.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.