Write a python program to split a string on the last occurrence of the delimiter.Program:-str1 = "s,i,r,f,p,a,d,h,a,i"
print(str1.rsplit(',' , 1)
print(str1.rsplit(',' , 2)
print(str1.rsplit(',' , 5)Output:-'s,i,r,f,p,a,d,h,a','i'
Python function argumentsArgumentsThe arguments specified in a function definition are taken in the order in which they are defined, for example:def message to, text):
Here you are provided with tutorials related to Computer Science, Web Development in Hindi with information related to Programming Language like C, C++, Java, Python. You can practice objective questions here. Thanks for visiting our website.