We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
for row in range(N):
inputs = input().split()
if len(inputs)==1:
command =inputs[0]
if len(inputs)==2:
command = inputs[0]
e = int(inputs[1])
if len(inputs)==3:
command = inputs[0]
i = int(inputs[1])
e = int(inputs[2])
Lists
You are viewing a single comment's thread. Return to all comments →
Same here........
import random L=[] N = int(input())
for row in range(N): inputs = input().split() if len(inputs)==1: command =inputs[0] if len(inputs)==2: command = inputs[0] e = int(inputs[1]) if len(inputs)==3: command = inputs[0] i = int(inputs[1]) e = int(inputs[2])