Skip to Content
Gaining Insights
Twitter Handles

With all of our functionality in place, we now need two Twitter users to compare. We’ll manually enter the Twitter usernames by creating empty variables that you can fill in, like so:

user_handle = "@Codecademy" celebrity_handle = "@IBM"



Outside of any function, but after the compare() function, create a user_handle variable and a celebrity_handle variable.

Set each variable to any Twitter username you’d like. Use the example above to help you.

Note: Make sure the Twitter handles you use refer to public Twitter accounts, otherwise the results can’t be processed.

Folder Icon

Take this course for free

Already have an account?