3 ms·
The same mechanism that is used for reversing a string can be very useful though. Think in the lines of python's: >>> 'abcd'[:-1] 'abc'
by markild 13y ago
The same mechanism that is used for reversing a string can be very useful though.
Think in the lines of python's:
>>> 'abcd'[:-1]
'abc'