Here is my code:
n = int(input())
p = []
for x in range(n+1):
a,b,c,d = input().split()
if x >= 1:
p.append(int(b))
i try to use list comprehension ,but there’s something wrong in my code
How can i fix this?
I have done so far:
p = [int(b) for x in range(n+1) if x >= 1 a,b,c,d = input().split()]