Learn
Gaining Insights
Analyze

Now that we have two Twitter usernames, we can use the analyze() function that we created earlier to retrieve some data from Twitter, like so:

user_result = analyze(user_handle) celebrity_result = analyze(celebrity_handle)

Instructions

1.

Call the analyze() function on the user_handle variable. Set the result equal to a variable called user_result.

2.

On the next line, call the analyze() function on the celebrity_handle variable. Set the result equal to a variable called celebrity_result.

Folder Icon

Take this course for free

Already have an account?