Answers for "enter multiple inputs in python loop python"

2

two input in one line python

#two input in one line python

X, N = [int(x) for x in input().split()]
Posted by: Guest on November-08-2021
2

multiple line input python

lines = []
while True:
    line = input()
    if line:
        lines.append(line)
    else:
        break
text = '\n'.join(lines)
Posted by: Guest on February-03-2021

Code answers related to "enter multiple inputs in python loop python"

Python Answers by Framework

Browse Popular Code Answers by Language