Ad
  • Default User Avatar

    hi! Could you please tell me, why should we substract '1' from queue.index('wolf') ? Because, as I understand, we have already substructed expression itself ( queue.index('wolf') ) from len(queue). Or it is like we are getting just '0' from queue.index('wolf') - 1 and then just substracting '0' itself from the whole list ?