Skip to content

Reading line after line

Watch it run · 1 of 2

One input() per line

1age = int(input())
2name = input()
3print(f"{name} is {age}")

Memory

int age

21

Typed input

21
Asha Patil

Output

(nothing yet)

line 1The first line: 21.

step 1 of 3