Use elif to make it faster.