Answers for "how to take multiple input in 1 line pythhon"

6

multiline input in python

print("Enter the array:\n")   
userInput = input().splitlines()
print(userInput)
Posted by: Guest on August-13-2020
2

how to take two inputs in a single line in python

# taking multiple inputs at a time separated by comma
x = [int(x) for x in input("Enter multiple value: ").split(",")]
print("Number of list is: ", x)
Posted by: Guest on August-31-2021

Code answers related to "how to take multiple input in 1 line pythhon"

Python Answers by Framework

Browse Popular Code Answers by Language