
import math
L = [12, 3, 8, 125, 10, 98, 54, 199]
for i in L:
print(math.log(i))
print()
L[5] = 0
print(L)
for i in L:
if i <= 0:
print("Логарифма от нуля нельзя брать!")
else:
print(math.log(i))
L = [12, 3, 8, 125, 10, 98, 54, 199]
for i in L:
print(math.log(i))
print()
L[5] = 0
print(L)
for i in L:
if i <= 0:
print("Логарифма от нуля нельзя брать!")
else:
print(math.log(i))