I've attached an image on what the output should look like. I'm very new to python and idk how functions work, so It would be great to stay away from that. Right now my code can detect if a number is above 180 or below 0 but only once, then the loop stops. Here's what I've got so far
p1 = int(-1)
print("Please enter the scores for player 1:")
while p1 > 180 or p1 < 0:
p1=int(input())
if p1 > 180 or p1 < 0:
print("Invalid score. Please try again.")
p1 = int(-1)
if p1 < 180 or p1 > 0:
break