CodePudding user response:
For rabbit in range (int (legs/4) + 1) :For chick in range (int (legs)/2 + 1) :
If the rabbit + chick==heads and legs rabbit + 2=4 * * chick:
Print (" % d, % d "% (rabbit, chick)
CodePudding user response:
For rabbit in range (int (legs/4) + 1) :