how do you read from a dictionary in python

Solutions on MaxInterview for how do you read from a dictionary in python by the best coders in the world

showing results for - "how do you read from a dictionary in python"
Django
05 Oct 2020
1#!/usr/bin/python
2
3dict = {'Name': 'Zara', 'Age': 7, 'Class': 'First'}
4print "dict['Name']: ", dict['Name']
5print "dict['Age']: ", dict['Age']