Please help me correct my code

question link: https://www.codechef.com/COMT2020/problems/BHPORSRP/
my solution :

`nam = []
for _ in range(int(input())):
name = ' '
name=input().lower()
if name.count("berhampore") >= 1 and name.count("serampore") >= 1:
    nam.append("Both")
elif name.count("berhampore") >= 1:
    nam.append("GCETTB")
elif name.count("serampore") >= 1:
    nam.append("GECTTS")
else:
    nam.append("Others")
for j in nam:
str(print(j))`

Check your spelling :slight_smile:

nam.append("GECTTS")

1 Like

Initially, there was a mistake in the problem.

Instead of nam.append(“GECTTS”)

Use:
nam.append(“GCETTS”)

1 Like

Now I feel like a total Idiot. :expressionless: :expressionless: :expressionless:

1 Like