+ 4
How we do indexing our string using backword position
x=('apple') we want to print only last two letter of string x using backward positions. we know in backward direction in apple 'e' has -1 position then what we can use this for print last two letter of 'apple' print(x[-1:-1])
2 Respostas
+ 3
no that will print an empty set. you need to do x[-2:]
+ 1
Here is the solution:
https://code.sololearn.com/c6aHoJi50bkt/?ref=app