Computer Science

What is the result of the following expression?

s ='987654321'
print (s[-1], s[-3])
print (s[-3:], s[:-3])
print (s[-100:-3], s[-100:3])

Python

Python String Manipulation

18 Likes

Answer

1 3
321 987654
987654 987

Answered By

10 Likes


Related Questions