Puzzle 2: In or Out?

Let's exercise our minds by solving a pandas series puzzle.

We'll cover the following

Guess the output

Try to guess the output of the code below:

Press + to interact
import pandas as pd
simpsons = pd.Series(['Homer', 'Marge', 'Bart', 'Lisa', 'Maggie'])
print('Bart' in simpsons)

Quiz

Q

What is the output of the code above?

A)

Bart

B)

2

C)

True

D)

False

Get hands-on with 1300+ tech skills courses.