Reading input
- Stage
- 1
- Module
- M1.3
- Lessons
- 1
In this module
- Read several values from one line with
input().split()andmap(int, ...). - Assign matching values to several names at once:
a, b = .... - Remove extra whitespace a line might carry with
.strip(). - Recognize when a problem's line holds a number of values that is not fixed in advance.