Login Register


help please filter_list
Author
Message
RE: help please #11
Lets see what happens when you enter a string :

Code:
data = "creed welcome to hackcommunity".split()[::-1] ("creed welcome to hackcommunity" is the string which we entered) data = ['creed','welcome','to','hackcommunity'][::-1] (split() method splits that string and store the result has a list) data = ['hackcommunity','to','welcome','creed'] ([::-1] reverse that list)
[Image: fow57.jpg]

Reply

RE: help please #12
Lets see what happens when you enter a string :

Code:
data = "creed welcome to hackcommunity".split()[::-1] ("creed welcome to hackcommunity" is the string which we entered) data = ['creed','welcome','to','hackcommunity'][::-1] (split() method splits that string and store the result has a list) data = ['hackcommunity','to','welcome','creed'] ([::-1] reverse that list)
[Image: fow57.jpg]

Reply

RE: help please #13
thanks a lot @Deque and @H4R0015K ... i have understood ...

Reply

RE: help please #14
thanks a lot @Deque and @H4R0015K ... i have understood ...

Reply







Users browsing this thread: 1 Guest(s)