def longest_substring(string): string = string.replace(",", "").replace("'", "").replace("!", "").replace("?", "").replace("#", "").replace("(", "").replace ...
# string is immutable and string is a data type in python . # string is a sequence of character enclosed in quotes. # we can primarly write a string in three way (('') - single quoted string ,(" ") - ...