Answers for "how to have multiple input in one line inpython for %s"

4

how to take two inputs in a single line in python

x, y = input("Enter a two value: ").split()
print("Number of boys: ", x)
print("Number of girls: ", y)
print()
Posted by: Guest on August-31-2021
3

taking multiple input in python

only_str = input().split() #only str
define_type = list(map(int, input().split())) #int, float, str
Posted by: Guest on February-21-2021

Code answers related to "how to have multiple input in one line inpython for %s"

Code answers related to "TypeScript"

Browse Popular Code Answers by Language