Answered by : homeless-hedgehog-q7vfloac4ays
inp = list(map(int,input().split()))
Source : https://www.quora.com/How-do-I-take-integer-input-in-Python-delimited-by-space | Last Update : Wed, 15 Jul 20
Answered by : md-fuadul-islam-redoy
N, M = map(int, input().split())
print(N)
print(M)
Source : | Last Update : Tue, 24 May 22
Answered by : sahil-bhatt
print("Enter the numbers: ")
inp = list(map(int, input().split()))
print(inp)
Source : https://tutorial.eyehunts.com/python/how-to-take-space-separated-integer-input-in-python-3-example-code/ | Last Update : Thu, 26 May 22
Answered by : breakable-bison-slugdvxuz87h
l = list(map(int,input().split())
Source : | Last Update : Thu, 29 Oct 20
Answered by : clear-corncrake-t97h5csa4mxg
inp = list(map(int,input().split()))
Source : https://www.quora.com/How-do-I-take-integer-input-in-Python-delimited-by-space | Last Update : Thu, 26 Nov 20
Answered by : jonathan-de-wet
_input = input() # Get input
_input = "thing1 thing2, thing3"
space_split = _input.split() # ["thing1", "thing2,", "thing3"]
comma_split = _input.split(",") # ["thing1 thing2", "thing3"]
Source : | Last Update : Sun, 30 Aug 20
Answered by : victorious-vendace-c4luz8fbospt
dic = {}
for index, value in enumerate(input().split()): dic[int(value)] = int(index)
Source : https://stackoverflow.com/questions/57164694/how-to-take-space-separated-input-in-dictionary-with-every-new-input-stored-agai/57164855 | Last Update : Sun, 16 May 21
Answered by : md-fuadul-islam-redoy
N = 5
num = [int(i) for i in input().split()][:N]
print(num)
# Output: [1, 2, 3, 4, 5]
Source : | Last Update : Wed, 08 Jun 22