August 2021
Beginner to intermediate
112 pages
1h 29m
English
| Puzzle 2 | In or Out? |
| | import pandas as pd |
| | |
| | simpsons = pd.Series( |
| | ['Homer', 'Marge', 'Bart', 'Lisa', 'Maggie']) |
| | print('Bart' in simpsons) |
Guess the Output | |
|---|---|
|
|
Try to guess what the output is before moving to the next page. |
This code will print: False
pandas.Series is a sequence type. Most Python sequences are indexed by a range, meaning the first item is at index 0, the second item is at index 1, and so forth. ...
Read now
Unlock full access