Re: To check for empty string after a portion of the string in python 3.6

2018-12-03 Thread Cameron Simpson
Again, _please_ use just one list: tutor or python-list. I've have directed replies to the tutor list. - Cameron On 04Dec2018 04:05, srinivasan wrote: Thanks a lot for your quick responses, Could you please let me know when the device is not enabled I get the error " I get the below error sayi

Re: To check for empty string after a portion of the string in python 3.6

2018-12-03 Thread srinivasan
Dear Mr. Cameron Thanks a lot for your quick responses, Could you please let me know when the device is not enabled I get the error " I get the below error saying "IndexError: list index out of range"" Code snippet: cmd = "sudo hcitool scan" res = self._helper.execute_cmd_output_string(cmd) print

Re: To check for empty string after a portion of the string in python 3.6

2018-12-03 Thread Cameron Simpson
Note: post returned to the tutor list. Please DO NOT cross post to multiple lists (i.e. tutor and python-list, as you have). This makes things difficult for people who are not on both lists. Pick a _single_ list, and use that. On 04Dec2018 02:46, srinivasan wrote: Could you please help me,

To check for empty string after a portion of the string in python 3.6

2018-12-03 Thread srinivasan
Dear Python Experts, Could you please help me, as am still learning python syntax, how can I add conditional check for empty string after running "hcitool scan" (ie., when there is no Bluetooth devices discovered) ie., after the word "Scanning..." , when there are no Bluetooth discover-able devic