►
Run
x = 'hello,world,apple,banana,mango' result = x.rsplit(sep=',', maxsplit=2) print(result)
Output