0

Please explain working methods??

find(),pop(),apeend,extend

18th Jul 2017, 11:05 AM
mayank
mayank - avatar
3 Answers
+ 4
find() search for a substring in a string pop() retrieve last item in a list append() add one item at a list end extend() add many items at a list end Google them to find references about it and learn exact parameters to provide for use them ^^
18th Jul 2017, 2:42 PM
visph
visph - avatar
+ 2
Everything that visph said, except for find(). It does not exist for lists. That typically is found when manipulating strings though. Strings and lists have similar behavior, but different methods.
18th Jul 2017, 2:49 PM
Sapphire
+ 2
Thank's for correcting me @Sapphire: I'm very new in Python, and have low phone connexion actually, so was too lazy to verify what I posted ;P
18th Jul 2017, 2:52 PM
visph
visph - avatar