spisok = [-98, 12, -284, -6, 43, -67]
print('Список до:', spisok)
for i in range(len(spisok)):
if spisok[i] < 0:
spisok[i] = 'x'
print('Список после:', spisok)
Copyright © 2024 SCHOLAR.TIPS - All rights reserved.
Answers & Comments
spisok = [-98, 12, -284, -6, 43, -67]
print('Список до:', spisok)
for i in range(len(spisok)):
if spisok[i] < 0:
spisok[i] = 'x'
print('Список после:', spisok)