Anuj Yadav
Mar 10, 20202 min read
How to continue reading lines until there is no more input in Python.
from sys import stdinlines = stdin.read().splitlines() It will store all the input in a list. Let us understand it with a Hackerrank...
Let's code