[Tutor] Writing the right code rite

2018-11-27 Thread Avi Gross
I am here to learn but also to help out when I already know something that is asked. What has been of some concern to me is how to reply when the asked has not shared with us lots of info. If I see them using "print" without parentheses, I can assume they are not using 3.x and perhaps emula

Re: [Tutor] Writing the right code rite

2018-11-27 Thread Alan Gauld via Tutor
On 27/11/2018 00:18, Avi Gross wrote: > But in watching, I conclude that a subset of the requests come from people > who are some form of early students and only aware of selected aspects of > the language. One of the challenges of this list is identifying the level of the requester. We get seve

Re: [Tutor] Writing the right code rite

2018-11-27 Thread Steven D'Aprano
On Mon, Nov 26, 2018 at 07:18:46PM -0500, Avi Gross wrote: > What kind of answers have people provided? The archives of this mailing list go back to 1994. If you spend some time browsing randomly at the answers people provide, you should get a feel for what sort of answers we tend to give. htt

Re: [Tutor] Issue in using "subprocess.Popen" for parsing the command output

2018-11-27 Thread srinivasan
Dear All, I have fixed the issue with below code snippet for parsing the command output without try and exception, pls let me know if any improvements are needed, might be useful for others def to_bytes(self, str): # Encode to UTF-8 to get binary data. if isinstance(str, byt

Re: [Tutor] Writing the right code rite

2018-11-27 Thread Steven D'Aprano
On Tue, Nov 27, 2018 at 10:22:24AM +, Alan Gauld via Tutor wrote: > there are no stupid questions. "Was it you or your brother who died in the war?" More seriously: https://www.themuse.com/advice/how-to-ask-stupid-questions-without-sounding-stupid although I disagree with the last bit of

[Tutor] Error Python version 3.6 does not support this syntax.

2018-11-27 Thread srinivasan
Dear Python Experts, As still I am newbie and learning python, I am trying to reuse the Bluetoothctl wrapper in Python from the link ( https://gist.github.com/egorf/66d88056a9d703928f93) I am using python3.6 version, In pycharm editor on the bold highlighted code snippets I see the error message "

Re: [Tutor] Writing the right code rite

2018-11-27 Thread Avi Gross
Steve, I appreciated your letter and it helped point me in the direction this group may be designed for. For some it is sort of like forms of therapy where the goal is to help them reach an insight rather than toss a diagnosis at them and maybe write a prescription. The ultimate goal is to learn h

Re: [Tutor] Error Python version 3.6 does not support this syntax.

2018-11-27 Thread Mats Wichmann
On 11/27/18 5:50 AM, srinivasan wrote: > Dear Python Experts, > > As still I am newbie and learning python, I am trying to reuse the > Bluetoothctl wrapper in Python from the link ( > https://gist.github.com/egorf/66d88056a9d703928f93) I am using python3.6 > version, In pycharm editor on the bold

[Tutor] Need help,please!

2018-11-27 Thread Kamina Kamtarin
A De/Coder. Think back to 3rd grade when you passed notes to friends in class. We can't let the teacher see what we're writing so we used a code. A=1, B=2, C=3, etc. Your job is to create a program which does the following: 1. Presents the user with a menu choice: encode or decode 2. Dependi

Re: [Tutor] Need help,please!

2018-11-27 Thread Alan Gauld via Tutor
On 27/11/2018 21:04, Kamina Kamtarin wrote: > A De/Coder. Think back to 3rd grade when you passed notes to friends in > class. We can't let the teacher see what we're writing so we used a code. > A=1, B=2, C=3, etc. Your job is to create a program which does the > following: > >1. Presents the

Re: [Tutor] encoder decoder problem

2018-11-27 Thread David Rock
> On Nov 27, 2018, at 16:17, Alan Gauld via Tutor wrote: > > On 27/11/2018 21:04, Kamina Kamtarin wrote: >> A De/Coder. Think back to 3rd grade when you passed notes to friends in >> class. We can't let the teacher see what we're writing so we used a code. >> A=1, B=2, C=3, etc. Your job is to c