Answers for "python 1 input 3 lines"

1

one line input in python

num1, num2 = map(int, input().split())
Posted by: Guest on March-18-2022
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

Python Answers by Framework

Browse Popular Code Answers by Language