Codegiant
we are best in web development and design. i am here for doing software solution in python flask and
23/02/2019
Best coding practice in python
7 Best python coding practices ( For better python code ) It is here that we turn and present you with some coding practices in python that you will come to treasure as they will greatly enhance your Python code output.
How to loop python dictionary list ================
aa = [{'name': 'Snehasish2 Mass1', 'number': '9163476547'}, {'name': 'Dadabhai 2', 'number': '9038012357'}, {'name': 'Chandu3', 'number': '9804622362'}, {'name': '+919831541232', 'number': '9831541232'}, {'name': 'Bipad Jethu', 'number': '8926321435'}, {'name': 'Dadabhai 3', 'number': '8584866337'}, {'name': 'Chandrima4', 'number': '9830632924'}]
for x in aa:
print(x)
How to loop python dictionary object =====================
aa = {'0': {'name': '-', 'number': '8275878454'}, '2': {'name': 'Xydyxugxigc ', 'number': '8252412782'}, '4': {'name': 'Gablu ', 'number': '1239963575'}, '6': {'name': 'Dgdgrf ', 'number': '8522145365'}, '8': {'name': 'Dgjxdjd ', 'number': '2100000788'}, '10': {'name': 'Gddjhdbdfj ', 'number': '2121545455'}, '12': {'name': 'Hdhfh ', 'number': '2100007777'}, '14': {'name': 'Msspl Contact', 'number': '8122385236'}}
for key, value in aa.items():
print(value['number'])
Click here to claim your Sponsored Listing.
Contact the business
Telephone
Website
Address
Kolkata / Calcutta