taking input in python in same linein list code example
Example: input two numbers in python in a single line
inputs = []for i in range(3): # loop 3 times inputs.append(input())
inputs = []for i in range(3): # loop 3 times inputs.append(input())