You are on page 1of 1

1)

x = 2
y = 5
if y > 8:
y = y * 2
else:
x = x * 2
print (x + y)

2)
for i in range(1, 9):
if i != 3:
for j in range(1, 6):
print('oi')

3)
count = 0
for i in range(1067, 3628):
if not i%2 and not i%7:
count += 1

print (count)

4)
count = 0
for i in range(18644, 33088):
if '2' in str(i) and '7' not in str(i):
count += 1

print count

5)

You might also like