Ответ:
Как то так
k = list()
for i in range(1, 11):
k.append(i)
result = [1]
for h in range(1, len(k)-1, 2):
result.append(k[h])
print(result)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
Verified answer
Ответ:
Как то так
k = list()
for i in range(1, 11):
k.append(i)
result = [1]
for h in range(1, len(k)-1, 2):
result.append(k[h])
print(result)