3
value = [-81, -12, 14, 42, 99]
value0 = []
while True:
if (min(value) % 2) == 0:
print(min(value))
break
else:
value.remove(min(value))
if (max(value) % 2) ==0:
print(max(value))
value.remove(max(value))
4
if value == value0:
elif (min(value) % 5) == 0:
print("Нету")
elif (max(value) % 5) == 0:
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
3
value = [-81, -12, 14, 42, 99]
value0 = []
while True:
if (min(value) % 2) == 0:
print(min(value))
value = [-81, -12, 14, 42, 99]
break
else:
value.remove(min(value))
while True:
if (max(value) % 2) ==0:
print(max(value))
value = [-81, -12, 14, 42, 99]
break
else:
value.remove(max(value))
4
value = [-81, -12, 14, 42, 99]
value0 = []
while True:
if value == value0:
value = [-81, -12, 14, 42, 99]
break
elif (min(value) % 5) == 0:
print(min(value))
break
else:
value.remove(min(value))
while True:
if value == value0:
value = [-81, -12, 14, 42, 99]
print("Нету")
break
elif (max(value) % 5) == 0:
print(max(value))
break
else:
value.remove(min(value))