Write a program to remove trailing characters


Topic: Write a program to remove trailing characters

Solution

word = " xyz "
rstrip = word.rstrip()
print(f"String ater removal of trailing characters:{rstrip}")



List all Python Programs