Patrick
Patrick

Reputation: 23

How to access a value - Python

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

Answers (1)

Kuldeep Singh Sidhu
Kuldeep Singh Sidhu

Reputation: 3856

a = ('status', {'id': 8, 'name': 'In Progress'})
print(a[1]['name'])

Upvotes: 1

Related Questions