- 3

Help me to fix the error???

a = int(input()) o = [] for i in range(a): i = int(input()) for j in range(i): j = input().split() o = o+j for k in o: s = o.count(k) if s>1: print(k)

4th Aug 2021, 4:01 PM
Shahir
Shahir - avatar
4 Antworten
+ 5
Double use of i and j
4th Aug 2021, 4:25 PM
Oma Falk
Oma Falk - avatar
+ 2
Well first you say i in for loop then you try to change it by making it equal to input same for j just use some other name to define a for loop
4th Aug 2021, 4:47 PM
Abs Sh
Abs Sh - avatar
+ 1
👍👍
4th Aug 2021, 4:58 PM
Shahir
Shahir - avatar
0
Explain me plz?
4th Aug 2021, 4:28 PM
Shahir
Shahir - avatar