x = 3

if x > 0:

print("x is positive")

sign = 1

elif x == 0:

print("x equals zero")

sign = 0

else:

print("x is negative")

sign = -1

print(sign)

a = [1, 2, 3, -4]

for x in a:

print(x)

print(x)

a = [1, 2, 3, -4]

for i, x in enumerate(a):

print('a at', i, '=', x)

a = [1, 2, 3, -4]

abs_sum = 0

for x in a:

if x > 0:

abs_sum += x

else:

abs_sum += -x

print(abs_sum)

print(sum(abs(x) for x in a))

s = 'Jane is 42 years old'

for c in s:

if c.isdigit():

print('Found:', c)

break

else:

print('No digit was found!')

budget = 13