I hope this helps!
num = 7
while(True):
    if(num >= 1 and num <= 5): #If num is between 1 and 5 inclusive...
        #Do something.
    else:
        print("Input out of bounds! ")
        num = int(input("Please enter a new number: "))
1
solved need assistance with while true look at body for more info [closed]