try this:

a , b , c = map(int,(input().split()))
Answer from Mahdi F. on Stack Overflow
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ taking-multiple-inputs-from-user-in-python
Taking multiple inputs from user in Python - GeeksforGeeks
June 26, 2026 - If we want to ask the user for multiple values on a single line, we can use list comprehension combined with the input() function and split() to break the input into individual components.
Discussions

Taking 3 inputs in the same line in Python 3.5 - Stack Overflow
I was trying to take 3 integer inputs on the same line using split, but it throws an error int() argument must be a string, a bytes-like object or a number, not 'list' Here is my code n,a,k... More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to take more inputs from a user at the same time in Python?
The split() method will generate a list. number_list = input("Please input multiple integers separated by commas: ").split(',') Note that this will generate a list of strings. If you want to convert them to integers for later use, you'll need another step. More on reddit.com
๐ŸŒ r/learnpython
5
1
February 16, 2023
How to take multiples inputs in a single line in python 3? - Stack Overflow
I am trying to get multiple inputs in a single line in python. This are the kind of inputs I am trying to take, the first line consists of the number of lines of input I will take: 3 1 2 3 4 3 8 ... More on stackoverflow.com
๐ŸŒ stackoverflow.com
How to take n numbers as input in single line in Python - Stack Overflow
Like in C++ how can I ask user input upto a range Below is the code to take user input in c++ #include n; //a... More on stackoverflow.com
๐ŸŒ stackoverflow.com
People also ask

How can you take multiple string inputs in Python?
Use input().split() to capture all words entered by the user. Each value is stored in a list as a string. This is the most common way to handle multiple string inputs in Python without needing type conversion.
๐ŸŒ
upgrad.com
upgrad.com โ€บ home โ€บ blog โ€บ data science โ€บ how to take multiple inputs in python: techniques and best practices
Multiple Input in Python: Techniques, Loops & Best Practices
How do you convert multiple inputs in Python to integers or floats?
Combine split() with map(), like list(map(int, input().split())). This converts all input values at once, so you can perform calculations on multiple inputs in Python immediately.
๐ŸŒ
upgrad.com
upgrad.com โ€บ home โ€บ blog โ€บ data science โ€บ how to take multiple inputs in python: techniques and best practices
Multiple Input in Python: Techniques, Loops & Best Practices
How do you take multiple inputs from a file in Python?
Use the open() function or the fileinput module to read lines from a file. You can then process each line and convert values to integers, floats, or strings. This is a practical way to handle multiple inputs in Python from external files.
๐ŸŒ
upgrad.com
upgrad.com โ€บ home โ€บ blog โ€บ data science โ€บ how to take multiple inputs in python: techniques and best practices
Multiple Input in Python: Techniques, Loops & Best Practices
๐ŸŒ
Quora
quora.com โ€บ How-do-I-accept-multiple-integers-as-input-on-a-single-line-in-Python
How to accept multiple integers as input on a single line in Python - Quora
Answer (1 of 11): The basic thing first I would like you to know is that Python by default takes input in the form of string. Now coming to your question, for single line input you can take the whole input(number of integers separated by space) as a string and then splitting them by space to be ...
๐ŸŒ
Medium
geekpython.medium.com โ€บ take-multiple-inputs-from-users-in-one-line-using-python-7c7594237f5a
Take Multiple Inputs From Users In One Line Using Python | by Sachin Pal | Medium
December 11, 2022 - Enter the inputs with commas: hey, there, geeks 1st input: hey 2nd input: there 3rd input: geeks Enter your input: hey, there, geeks Maxsplit 1: ['hey', 'there, geeks']
Find elsewhere
๐ŸŒ
GeeksforGeeks
geeksforgeeks.org โ€บ python โ€บ input-multiple-values-user-one-line-python
How to input multiple values from user in one line in Python? - GeeksforGeeks
July 23, 2025 - ... a = [] n = int(input("Enter number of values: ")) for i in range(n): a.append(int(input(f"Enter value {i+1}: "))) print(a) ... Explanation: This code takes an integer n as the number of inputs, then uses a loop to read and convert each input ...
๐ŸŒ
Upgrad
upgrad.com โ€บ home โ€บ blog โ€บ data science โ€บ how to take multiple inputs in python: techniques and best practices
Multiple Input in Python: Techniques, Loops & Best Practices
July 7, 2026 - This method is the standard way to handle multiple integer inputs in Python in a single line. Use input().split() to capture all words entered by the user. Each value is stored in a list as a string.
๐ŸŒ
CodeChef
codechef.com โ€บ learn โ€บ course โ€บ python-beginner-v2-p1 โ€บ BP00BP01_V2 โ€บ problems โ€บ GS06
How to accept multiple inputs in a line in Problem solving in Python
Test your Problem solving in Python knowledge with our How to accept multiple inputs in a line practice problem. Dive into the world of python-beginner-v2-p1 challenges at CodeChef.
๐ŸŒ
Geek Python
geekpython.in โ€บ multiple-inputs-in-python
Take Multiple Inputs From The User In A Single Line Of Python Code
August 15, 2023 - In Python, the input() function allows taking input from the user, and to provide a message with the input() function, we can prompt a string with it.
๐ŸŒ
Scaler
scaler.com โ€บ home โ€บ topics โ€บ how to take multiple input in python?
How to Take Multiple Input in Python? - Scaler Topics
March 30, 2024 - Similarly, we obtain the input for three variables in case 2 where we are giving white space as a delimiter in subcase 1 and giving the delimiter as "," in subcase 2 to take multiple input in Python. In both these cases, we use list comprehension and by making use of the map() function the ...
๐ŸŒ
Plain English
plainenglish.io โ€บ home โ€บ blog โ€บ python โ€บ how to take multiple inputs from users in python
How to Take Multiple Inputs From Users In Python
July 11, 2021 - For both the above cases only 3 inputs (not more or less can be provided corresponding to defined variables!) x= input("Enter variables: ").split(",") print(x) Enter variables: how,are,you,dear ['how', 'are', 'you', 'dear'] Taking multiple inputs at a time and type casting using list() function. Used Map Function (Optional) to convert thy input into an integer.
๐ŸŒ
Quora
quora.com โ€บ How-can-I-take-more-than-one-input-in-one-line-in-Python-3-0
How to take more than one input in one line in Python 3.0 - Quora
Answer (1 of 5): You can get your input using input function and then split it thereafter. [code]inputList = input().split() [/code]`split` will seperate the input by whitespaces and give you a list. You can also get a list of integers in one line using this: [code]intList = list(map(int, inpu...
๐ŸŒ
YouTube
youtube.com โ€บ watch
input multiple integers in one line Python - YouTube
In Python , Accepting multiple integers as input in one line is different than Java or C++
Published: February 15, 2023