+ 2
How to separate last 3 string in the word? Give the solution in program
example: input: apple orange output: ple nge
1 Answer
+ 4
I didn't test it, but this should work in python:
string = 'apple orange'
for word in string.split(' '):
print(word[-3:], end=' ')