News

Extracting a substring in Python using slicing can be achieved with negative indexing. 1️⃣ Negative indices count from the end of the string. For example, s[-1] gives the last character.