Count() doesn't count all occurrences (original) (raw)

pochmann (Stefan Pochmann) September 21, 2023, 10:30am 5

Couldn’t you have demonstrated the issue with just print('1 2 2 3'.count(' 2 ')) (returning 1, expecting 2)?

1 Like

Str.count to allow counting of overlapping substrings