>>> 'hello world'[::-1]
This is extended slice syntax.
Syntax is as follows:
[begin:end:step] - by leaving begin and end off and specifying a step of -1, it reverses a string.
>>> 'hello world'[::-1] 'dlrow olleh'
This is ...READ MORE
for c in "string":
You can use word.find('o') as well to ...READ MORE
You can use split() using space as ...READ MORE
if you google it you can find. ...READ MORE
suppose you have a list
a = [0,1,2,3,4,5,6,7,8,9,10]
now ...READ MORE
can you give an example using a ...READ MORE
You can simply the built-in function in ...READ MORE
The simple way of doing this will ...READ MORE