I want to break a loop when an input is equal to negative one. i have tried using the if function in combination with my value and break
def while_input():
while True:
inp = input('use -1 to break')
if inp == -1:
break
This continues to prompt for further input even when -1 has been input.
please help!!