CommencerCommencer gratuitement

Using inherited methods

You've now defined a Tweets class that's inherited methods from both Document and SocialMedia. In this exercise, you'll use inherited methods to visualize text from both tweets and retweets.

Be aware that this is real data from Twitter and as such there is always a risk that it may contain profanity or other offensive content (in this exercise, and any following exercises that also use real Twitter data).

Cet exercice fait partie du cours

Software Engineering Principles in Python

Afficher le cours

Exercice interactif pratique

Essayez cet exercice en complétant cet exemple de code.

# Import needed package
import ____

# Create instance of Tweets
my_tweets = ____
Modifier et exécuter le code