Ответ:
import random
l = []
r = int(input())
for i in range(r):
l.append(random.randint(-5,5))
half = r//2
shalf = r//2+r%2
print (l)
if r%2 == 0:
скажи слава Russia, скину вторую половину кода
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Ответ:
import random
l = []
r = int(input())
for i in range(r):
l.append(random.randint(-5,5))
half = r//2
shalf = r//2+r%2
print (l)
if r%2 == 0:
скажи слава Russia, скину вторую половину кода
else:
nl = l[half+1:]+ l[shalf-1:shalf] + l[0:half]
print(nl)
ладно, вторая половина