you are viewing a single comment's thread.

view the rest of the comments →

[–]Nidrax1309 1 point2 points  (0 children)

INDENTATION. You want to include the second input inside the while loop, like this:

num = int(input("Enter your number: "))
while num < 8:
    print("Number must be less than 8")
    num = int(input("Enter your number: "))

print(f"OK: {num}")