вот код
word=int(100) start=N[code python][/code]one while start!="": start=(input("nachalo:")) if start: start=int(start) finish=int(input("конечная позиция")) print("срез word[",start,":",finish,"]выглядит как",end=" ") print(word[start:finish])
получается вот что
nachalo:2 конечная позиция6 срез word[ 2 : 6 ]выглядит как Traceback (most recent call last): File "C:\Users\1\Desktop\питон\1.py", line 53, in <module> print(word[start:finish]) TypeError: 'int' object is not subscriptable
я всю голову сломал