s = "Привет от старых штиблет!"
s = "123" s = s + "0" + s; s = s + s; print ( s )
s = "123" s = s + s[1] + s + s[2] print ( s )
s = "12345" n = len(s) + len("456") print ( n )
s = "123456789" s1 = "abcdef" s = s[4:6] + "0" + s1[2:5] print ( s )
s = "0123456" q = "abc" s = s[:2] + s[5:] q = q[0] + s + q[1:] print ( q )
s = "0123456789" q = s[2:] n = q.find("6") print ( n )
s = "0123456789" n = s.find("456") q = s[:n+2] + s[n+5:] print ( q )
s = "123456" while len(s) > 0: s = s[2:] print ( "1", end="" )
c = 0 while True: ... if p < 0: break c += 1 S = S[p+2:]
c = 0 for q in S: if q == "0": ...
Q = "0123456789" S = "0" for k in range(1,10): ...