I have an input where the first line is a string and the next line contains three integers:
StackOverflow
1 2 3
I have to store the string from the first line to a separate variable and the 3 integers in separate variables. The input is comming fromstdin
.
I tried to use sys.stdin.read()
but it reads the entire input as one entity. How to split it to separate variables?