n=int(input("Enter a number from 5 to 15: "))for i in range(n+1): print(i)
output:
Enter a number from 5 to 15:60123456
n=int(input("Enter a number from 5 to 15:"))if n<=4: print("Sorry!!!! You have entered value less than 5")elif n>=5 and n<=15: for i in range(n+1): print(i)else: print("Sorry!! You have entered above 15")