from random import randint
a = [randint(0,15) for i in range(7)]
pr = 1
for i in range(len(a)):
if a[i] % 2 != 0:
pr *= a[i]
print(pr)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
from random import randint
a = [randint(0,15) for i in range(7)]
pr = 1
for i in range(len(a)):
if a[i] % 2 != 0:
pr *= a[i]
print(pr)