s = input("Введите слово: ") print ( len(s) )
строй
s = "инф" q = "а" * 5 s = s + q print(s)
s = "ксе" s1 = "во" s2 = s1 + s + "ль" print ( s2 + s1 )
s = "информатика" print ( s[3] )
s = "кибернетика" print ( s[-2] )
s = "космонавтика" print ( s[2:5] )
s = "галактика" q = s[:4] print ( q )
s = "планшет" q = s[3:] print ( q )
s = "абвгдежзик" q = s[:3] + s[5:] print ( q )
s = "абвгдежзик" q = s[:4] + "..." + s[7:] print ( q )
s = "монитор" q = s[1:-2] print ( q )