The definition of a palindrome typically focuses on the sequence of characters and whether it reads the same forwards and backwards.
Identify the longest substring within a given input string that forms a palindrome, which is a sequence of characters that reads the same forwards as it does backward.
The goal of this problem is to find the length of the longest substring within a given string that does not contain any repeating characters.
A substring is a contiguous sequence of characters within a string. Python provides several ways to check for substrings within a larger string.
Both substring() and slice() methods allow you to extract a portion of a string. By specifying a range that excludes the last character, you effectively remove it from the string.