while True:
inp = input("Say hi bruh!: ").lower
if inp == "hi":
print("Okay")
break
else:
print("Not Okay")
continue
It either doesn’t enter the condition or something. I know Python for a while and can’t figure out what is wrong.
>Solution :
As Joran stated in the comment, you’re missing the parentheses after lower. Once you add those your loop will work. Python cannot successfully interpret your variable inp without them.
while True:
inp = input("Say hi bruh!: ").lower()
if inp == "hi":
print("Okay")
break
else:
print("Not Okay")
continue