In: Computer Science
while True: #Run the loop untill the condition true
n=int(input("enter a number between 1 and 100: ")) #taking input
if 1<=n<=100: #checking number in the range
print("The entered number is in the given range ")
break
Note : for indentation,pls look at screen shot
The above picture is about python program.