I have a single input as 1 2 3 4 5 6 7.
input_arr = input().split() # ['1', '2', '3', '4', '5', '6', '7']
print(input_arr)
input_arr = list(map(int, input_arr))
is there a way to convert it into list of int without using map, for loop,list comprehension or third party package?
>Solution :
You could just brute-force it like so:
input_arr = input().split()
new_arr = []
i=0
while i<len(input_arr):
new_arr.append(int(input_arr[i]))
i+=1