for i in range 2 num meaning in python