So I have a list (shown below) and I need to randomly access one of the dictionaries in a list, and print it out:
e.g. Instagram, 346, Social media platform, United States
I've tried to google and search for it, but whatever I tried it didn't work. I know how to print out the whole list, but I don't know how to print a single dictionary randomly.
data = [
{
'name': 'Instagram',
'follower_count': 346,
'description': 'Social media platform',
'country': 'United States'
},
{
'name': 'Cristiano Ronaldo',
'follower_count': 215,
'description': 'Footballer',
'country': 'Portugal'
},
{
'name': 'Ariana Grande',
'follower_count': 183,
'description': 'Musician and actress',
'country': 'United States'
}
]