test P1, memorize status in an array at entry 0
test P2, memorize status in an array at entry 1
test P3, memorize status in an array at entry 2
test P4, memorize status in an array at entry 3
The just iterate over your array with a for loop and print or not the info, you’ll need to add a bit of smartness if you want commas in the right places