This KZitem channel is going to blow up soon. Your videos are direct and straight to the point. Keep doing them Brendan 👏. Also do give practical application or example
@BrendanMetcalfe
4 жыл бұрын
Thank's man!
@gregoryweb3
2 жыл бұрын
Thank you very much bro I learned direct to the point in count method
@BrendanMetcalfe
2 жыл бұрын
Thanks glad it was helpful!
@itsme7570
2 жыл бұрын
Nice and simple 👍
@Whatever-po3vn
4 жыл бұрын
Ummmm, I have no ideas on how to tackle the repeated elements in a string (what you mentioned at the end of video clip) by using a loop, can you illustrate please? thx a lot
@BrendanMetcalfe
4 жыл бұрын
you'd have to loop and check for occurrences at each iteration. Here's some links for you stackoverflow.com/questions/32283255/overlapping-count-of-substring-in-a-string-in-python, stackoverflow.com/questions/2970520/string-count-with-overlapping-occurrences
@thingsiplay
4 жыл бұрын
It would have make sense to count the type of objects. .count(object, type) In example to count how many int or list or custom objects are inside. Or how many func references in example. But I do not have any real world example when this would be useful.
Пікірлер: 11