August 2021
Beginner to intermediate
112 pages
1h 29m
English
| Puzzle 16 | Y3K |
| | import pandas as pd |
| | |
| | y3k = pd.Timestamp(3000, 1, 1) |
| | print(f'They arrived to Earth on {y3k:%B %d}.') |
Guess the Output | |
|---|---|
|
|
Try to guess what the output is before moving to the next page. |
This code will raise an OutOfBoundsDatetime exception.
Computers and time have a complicated relationship. There are daylight saving time, leap years, time zones, and more details to work out.
Computers store time as the ...
Read now
Unlock full access