Python Use For Loop Range In Python Code Run In Terminal