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.

Take this course for free

Mini Info Outline Icon
By signing up for Codecademy, you agree to Codecademy's Terms of Service & Privacy Policy.

Or sign up using:

Already have an account?