+ 3
re.findall() vs str.count()
Could you please tell me whats the advantages/disadvantages of these methods which seem to give similar results.
2 odpowiedzi
+ 4
str.count() counts the instances of a certain string while re.findall() returns all matches. Might seem silly and useless but is helpful when you're doing RegEx matches.
+ 3
Thank you, friend!