What is the difference between using find() and findall() functions? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between using find() and findall() functions?

26th Jun 2018, 1:52 PM
Zahraa
Zahraa - avatar
2 Answers
+ 4
find() -> 1st occurence findall -> all occurence
26th Jun 2018, 2:09 PM
‎ ‏‏‎Anonymous Guy
+ 3
find() function: find() function is you can find only one particular word in the first word of the paragraph findall() function: findall() function is you find all the particular word in the paragraph It is used to find and replace the word
26th Jun 2018, 2:10 PM
Mufassil
Mufassil - avatar