Mike. J. Thompson wrote:I've had a quick look through, and the things that stand out are:
1) you have an except block that does nothing but raise the exception it just caught. This is redundant. Was there meant to be some other logic in it? If not it should be removed.
2) you are filtering a list by looping through it and selectively deleting entries. This is not the pythonic way to do this. Instead you should use a list comprehension.
chris webster wrote:I was watching "Zombieland" on TV the other night (great fun), and I noticed that "I am Legend" was on another channel at the same time, and "Shaun of the Dead" on yet another channel. Zombies all over the TV schedules.
This prompted me to wonder, when did zombies get so fast? In older movies, zombies were usually a bit rubbish, shuffling along and groaning out demands for "More brains". Unless you were cornered, you could mostly escape at a brisk walk.
Since "28 Days Later" (at least) movie zombies are typically super-speedy predators with herculean strength and only occasionally shedding their own digits, limbs or major organs at random. Much more scary.
So does anybody know when the first fast zombies appeared?
J. Kevin Robbins wrote:I'm trying to understand this. How would you define "Sense Object"? I don't understand that term.
Greg Charles wrote:Are you trying to find the index of the element that matches searchnum? What do you want to return if searchnum doesn't exist in the array? It looks to me that with line 6 and 7, if searchnum falls between the elements at indexes n and n+1, you return n. Is that what you want? What happens if the searchnum you pass in is less than the element at index 0, or greater then the element at index length-1?
Jim Venolia wrote:I'll need to try The Last of Us again, I didn't get into it at all. Think I made it to the second chapter.