Select the correct output of the code : S = “text#next” print(S.strip(“t”))
The Python string method ‘strip()’ works in this example. Understand how it removes specified characters from the beginning and end of a string, with the output of the code ‘S.strip(‘t’)’ being ‘ext#nex’.