Python:
from random import randint
N = [randint(-15, 30) for i in range(9)]
N = [i for i in N if -5 >= i <= 15]
print(sum(N))
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Python:
from random import randint
N = [randint(-15, 30) for i in range(9)]
N = [i for i in N if -5 >= i <= 15]
print(sum(N))