You are viewing a single comment's thread. Return to all comments →
Why do that instead of just?
n = int(raw_input().strip())
candles = map(int,raw_input().strip().split(' '))
Wow, egrodo1, Python for the win!
I basically did the same thing!
as I am a beginner, I think very long and messy code.... lol
Map object doesn't have the count attribute. You will get an error