how to take two inputs in a single line in python

Solutions on MaxInterview for how to take two inputs in a single line in python by the best coders in the world

showing results for - "how to take two inputs in a single line in python"
Lucia
08 Apr 2017
1x, y = input("Enter a two value: ").split()
2print("Number of boys: ", x)
3print("Number of girls: ", y)
4print()
Hetty
30 Apr 2018
1# taking multiple inputs at a time separated by comma
2x = [int(x) for x in input("Enter multiple value: ").split(",")]
3print("Number of list is: ", x)
Sam
05 Jan 2017
1inputs = []for i in range(3):  # loop 3 times	inputs.append(input())
Ben
01 Aug 2019
1lines = []
2while True:
3    line = input()
4    if line:
5        lines.append(line)
6    else:
7        break
8text = '\n'.join(lines)
9
queries leading to this page
input pattern only numbers htmlhow to take 2 numbers input in pythonhow to input multiple values in single line in pythonpython allow multiple line inputto print multi of two int in pythongetting two integer inputs in sinlge line pythontaking input in python in same line in pythonhow to take two input in single line in pythonhow to input two numbers in pythoninput two numbers in one line pythonhow to take of two number in sentences in pythonmultiple line of input in pythonhow to accept 2 input at one line inpythontwo integer inputs in one line pythonget two int in one input pythonpython input on 2 linesmultiple inputs in single line in pythonpython multiline input python input integer from user in one linetwo integer input in one line pythonmultiple line input in pythonhow to have multiple inputs on one line in pythonpython 2 input in one linetake 2 input in python single lineget input one and more line pythonpython3 multiline inputpython 2 inputs in one lineget 2 inputs in single line pythonget multiple integer inputs in python single linehow to read two variables in pythontake two integer inputs in python in same linetwo input in pythontaking multiple inputs in single line in pythonhow to take multiple python inputs in a new linetaking multiple inputs in python 3how to take multipleline input from user in pythoninput multiple integers in a single line pythontake multiple line input pythontwo integer input in pythonmulti line input pythonsingle line int input in pythonhow to read 2 input in python in single lineinput numbers in a line in python 2how to receive two values per line in pythonhow to give multiple input values in a single line pythonpython input multi line stringhow to take multiple string input in pythonhow to take multiple lines of input in pythoninput python code in one linepython get two numbers from one linehow to get multiple line input in pythonhow to input two numbers in python in one linehow to take multiple lines input in pythoninput 2 integer element in python in single linesingle line multiple input in pythoninput two int in python in a single linehow to take integer input in one line pythonhow to take input side by side in python in pythoninput many number in one line in for loop pythoninput map for 2 numbers in pythonhow to read multiple line input in pythonpython get two inputs on same linetwo inputs python one lineenter two integers python after each otehrmulti line input in pythoninput 2 numbers on the same line in pythonhow to take 2 inputs in a single line in pythonget multi line input pythonhow to input multiple lines in pythontaking multiple string input in single line in pythonpython input 3 integers on one linepython take two inputs in one linehow to take two integer inputs in one line in python 3how to take input in different lines in pythontwo input in single line in pythoninput from multiple lines pythonhow to read multiple lines of input in pythontake two integers as input in pythonpython two int in forpython input int same linemultiple input in different line pythonget multiline input pythonhow to take input in python two different lineshow to get multiple lines of text one input pythoninput 3 integers in one line pythonread two integers from stdin python space seperatedhow to get input data that has multiples lines pythonhow to take multiple line input from user in pythonpython get multiple line inputtake two numbers as inout in single line in pythonmultiple input in one line pythonhow to take 2 integer input in pythonpython multi line inputhow to get two inputs in one line in pythonhow to input multiple values in a single line in pythonaccept two numbers in the same line in pythoninput two integers in a single line pythonhow to take 2 integer input in python in single linetake 2 input from user in single line using pythonmultiline python inputhow to take multiple input in python in different linestake multiple line input in pythonpython how input two integers on the same linehow to take two inputs in one line in python 3how to take the horizontal input the user in pythoninput multiple values from user in one line in pythonmultiline inputs pythonaccept 4 spaced integers in a single line pythonhow to take input in python in single linehow to get 2 value input from single line pythontaking two integer inputs in pythonhow to take two inputs in a single line in pythontake input in multiple lines pythonpython 2 7 multiple input in one line listpython many input in same lineinput multiple lines pythontwo integer inputs inpythontake multiple input in python in one line and put in listpython input 2 linesread 2 ints in the same line pythonpython multiple input in one linehow to take two numbers as in same line as input in pythontwo inputs in one line pythonhow to input 2 numbers in 2 line pythonhow to take 2 input in same line in pythonmultiple lines input pythonmultiple inputs in one line pythontwo int in one line input in pythonhow to inputs two integer in one line in python 3python multiple line input inthow to take two integer input in onw line pythonget multiple lines from input pythonmultiple inputs on one line pythontwo integer inputs in pythoninput 3 ints in a line in pythontake multiple input variable from one line in pyhtonhow to take 2 input in python in single linepython read line multiple inputhow to get multiline input in pythonhow to take multiple inputs in pythonhow to take 2 int input in pythonhow to take 3 inputs in a single line in python2 input in one line pythonpython multiple inputs in one linehow to take multiple inputs in one line in pythonhow to input multiple values from user in one line in pythonread two integers in pythonpython input 2 integerstaking multiple line input in pythonpython read 2 integershow to take two integer inputs and store them in a variable pythonget multi inputs python in one line of codemultiple input new line in pythontaking two integer input in python in one linetwo input in one line python 5chow to take 2 inputs in one line in pythonhow to take three input in python on same line2 int inputs pythontake 2 inputs in python in same linepython input multiple linesgetting multiple line input in pythonmultiline input in pythoninput python in two linehow to input multiple values in python in 1 lineinput some ints in a line in pythontake two inputs in pythonmultiple lines of input pythonhow to take two numbers as input in pythonmultiple inputs one line pythonhow to input 2 numbers in python in single linepython input allow multiple linestaking multiple input in one line in list pythontake two integer inputs in python in a single linetwo numbres input in a line in pythoninput numbers in a line in python 2 7python multiple inputs same linepython get multiples lines inputinpuut 2 integers on same linemultiple lines input in pythontake multiple input in python in one linepython how to take multiple inputs on one linetake input of 2 numbers in one line python 3 input single line as int in pythonpython input many linesmake multiple input python in one linehow to take multiple input from a user at once line in python2 inputs in one line pythonpython taking multiple input with newlineinput 2 numbers in python in one linehow to get an 2 inputs in a single line in pythonhow to take multiple inputs in python using for loopinput 28 29 2 lines in pythonmultiline input pythonenter more then 1 number owith input pythonhow to take two int input in one line in pythontake two input in single line pythonpython take multiple inputs in one linehow to take multiple inputs in python in one line using map2 inputs in single line in pythonpythin input from file with multiple lineshow to take input of more than 1 integer in python how to take two inputs from a single line pythionhow to take two input in one line in pythonpython how to input on one of the top line of numbershow to receive 2 inputs python one linetwo input in single line pythonhow to have two inputs in one line in pythonpython read 2 numbershow to take two integers as input in one line in pythontake 2 inputs in one line pythongetting multiplelines of input pythontake input in python multiple lineshow to input two integers in pythonhow can an input in python be a few linesenter 2 number in python in single linereading multiple lines of input in pythongetting input two int in one line in pythonpython input two numbers in one linereading multiple inputs in a single line using pythonhow to read multiline input in python from single linehow to get multiple inputs in multiple lines in pythonhow to input many lines in pythonpython taking input form different linespython 3 input read multiple linestake two inputs in one line pythonpython input multiple values in one linehow to take multiple line string input in pythonread multiple input in multiline pythonhow to take 2 inputs in line in pythonget multiple inputs in python single line python how to take multiple integer input in single line in pythoncollect multiple line input pythonhow to take multiple input values on one line pythonpython get two inputs in one lineinput two values in one line pythonhow to take two inputs in one line in python 3fhow to input in one line pythontwo input in one line pythonline graph with red dots for particular column value pythoninput text multiline line in pythontwo integer input in single line pythonpython multiple line inputshow to take input of multiple elements in one line pythontaking multiple inputs in one line as a list in pythontake 2 int inputs in python in same linetake multiple inputs lines pythonpython multiple inputs on one linehow to take 2 int inputs in one line in pythonhow to input 2 numbers in one line pythoninput 2 integer in pythontake input in single line in pythontaking input in python in same linein listtake two input in one line in pythonhow to take 3 integer input in a single line in pythontake several inputs in a new line pytonpython input get two inputs one linehow to take two inputs in the same line in pythontake 2 integer inputs from 1 line pythonpython for with multiple linehow to enter multiple lines in pythonpython enter multiple numbers on one lineinput multiline string pythonreading multiple inputs from a line in pythonhow to read two int number in same line pythontake multiple inputs in single line in pythonhow to get input two integers in one line in python 3 with space between themhow to take two string input on same line in pythonhow to take two inputs in one line in pythontwo inputs in single line pythontake multiple lines of input python from txthow to take many inputs from the same line in pythonhow to take two integer input in same line in pythonhow to input two numbers in a single line in python 22python 3 22 input multiple lineshow to take multiple line input in pythonpython two line inputpython print all user input separated by newlinehow to input two numbers in python in single linegetting multiple line input in python3how to take multiline input in pythoninput 28 29 python 2 lines2 line input in pythonscanning 2 numbers in pythonhow to take input of 2 int variables in pythonhow to take 2 lines of input in pythonhow to take two inputs in single line in pythonhow to take two inputs in a single line in python