| 
 | 
back to boardWA8 Why? Can anybody give me test 8? Code on python2: a, b = map(int, raw_input().split(' ')) k = 0 c = map(int, raw_input().split(' ')) for x in xrange(1,10):     k = k+c[x]*20 if b-k>a:     print('No chance.') elif b-k<a:     print('Dirty debug :(') elif b-k==a:     print('No chance.') Re: WA8 Why? Posted by  Snetch 15 Jan 2016 21:23 xrange(1, 10) only takes array elements 1-9. You need to use xrange(0, 10) to get elements 0-9  |  
  | 
|