PROGRAM TO CHECK NEGATIVE NUMBERS IN A LIST IN PYTHON
def negative():
N = 0
n = list(map(int, input().split()))
for x in n:
if x < 0:
N = x
return N
negative()
5 4 3 2 -1
-1
def negative():
N = 0
n = list(map(int, input().split()))
for x in n:
if x < 0:
N = x
return N
negative()
5 4 3 2 -1
-1