Reputation: 23
Just a quick Python question: How do I access the value assigned to the 'name' variable below?
('status', {'id': 8, 'name': 'In Progress'})
Please help, thanks!
Upvotes: 0
Views: 41
Reputation: 3856
a = ('status', {'id': 8, 'name': 'In Progress'})
print(a[1]['name'])
Upvotes: 1