Q:

Write a Python program to split a string on the last occurrence of the delimiter

0

Write a Python program to split a string on the last occurrence of the delimiter.

All Answers

need an explanation for this answer? contact us directly to get an explanation for this answer

str1 = "w,3,r,e,s,o,u,r,c,e"
print(str1.rsplit(',', 1))
print(str1.rsplit(',', 2))
print(str1.rsplit(',', 5))

need an explanation for this answer? contact us directly to get an explanation for this answer

total answers (1)

Similar questions


need a help?


find thousands of online teachers now