Mar-27-2021, 05:28 PM
(Mar-27-2021, 04:39 PM)deanhystad Wrote: That would not work. Why are you counting newlines? I would expect the count to be 0 or then number of newlines.
Does text.count('Bluetooth:') work? Isn't that the information you want?
I'm iterating through the number of lines and yes, it's the hard way even though it works.
text.count('Bluetooth:')works as well and it's definitely the shortest way ;) Thank you!