pylint-errors

R1713 (consider-using-join)

:x: Problematic code:

chars = ['H', 'e', 'l', 'l', 'o']
r = ''
for s in chars:
    r += s

print(r)

:heavy_check_mark: Correct code:

chars = ['H', 'e', 'l', 'l', 'o']
print(''.join(chars))

Rationale:

Using str.join(sequence) is faster, uses less memory and increases readability compared to for-loop iteration.