Python Local Variable Result Might Be Referenced Before Assignment

Python Local Variable Result Might Be Referenced Before Assignment