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