Python How Do I Split Up Thresholds Into Squares In

Python How Do I Split Up Thresholds Into Squares In