Skip to content
CCC Python Course

Reading input

Stage
1
Module
M1.3
Lessons
1

In this module

  • Read several values from one line with input().split() and map(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.

Before this module

Lessons

  1. 1Reading input