Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.
Timed 4 python optimising
Ok, so far the challenges have been pretty lax on time allowed to return the answer. Im now on timed 4, and have written a python script which (i believe) returns the correct answer. Im getting errors when I submit it though, telling me its either wrong or too late. So I checked my answers and they seem ok, the only thing it can be is the time.
I imported python's time module and took 2 readings, one just before my http request and one just after. Got about 4.5 seconds back. I do have an ugly for..if..elif statement in the middle, but even with this commented out i'm still at 3.5.
Does anyone know any good techniques for optimizing python code? Dont really want to do it in C, im getting on well with python.
Cheers