Python:
import random
length = 10
diapason = (-100, 100)
N = [random.randint(*diapason) for i in range(length)]
print(N)
if N[0] < 0:
del N[0]
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Python:
import random
length = 10
diapason = (-100, 100)
N = [random.randint(*diapason) for i in range(length)]
print(N)
if N[0] < 0:
del N[0]
print(N)