>>> while True:
a = input("please input something:")
if a == "ab":
break
else:
print(f"you had input {a}.")
please input something:100
you had input 100.
please input something:abc
you had input abc.
please input something:xyz
you had input xyz.
please input something:ab