Log in from a computer to take this course

You'll need to log in from a computer to start Learn the Watson API. But you can practice or keep up your coding streak with the Codecademy Go app. Download the app to get started.

apple storegoogle store
Learn

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.

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?