Hello,
I found this simple script online but when I execute it I get the following
error: "TypeError: 'list' object is not callable"
Here is the code sample:import subprocess
ls_output= subprocess.check_output(['dir'])
I searched online and found a another similar code sample
(http://www.opentec
://unsee.cc/sonezima/ Thank you.
On Saturday, April 30, 2016 11:12 PM, Steven D'Aprano
wrote:
On Sat, Apr 30, 2016 at 06:51:17PM +0000, Jason N. via Tutor wrote:
> Hello,
> I found this simple script online but when I execute it I get the
> following error: "TypeError: &
Hello,
I figured out the issue. It was a silly mistake - i was not running the correct
code; instead was running code from another program which was active on a
second tab. Thank you.
On Sunday, May 1, 2016 4:15 PM, Jason N. via Tutor wrote:
Thank you all for your responses.
I am
Hello,
Wanted to ask if its possible to have a dictionary that can be looked up by
either values?
For example,
mydic = {"A: "Apple", "B": "Banana"}When user inputs "A" I want "Apple" to
come. But if the user enter "Apple" I want "A" to respond.
Please let me know the best way to handle this type
ay 2, 2016 5:27 PM, "Jason N. via Tutor" wrote:
>
> Hello,
> Wanted to ask if its possible to have a dictionary that can be looked up by
> either values?
> For example,
> mydic = {"A: "Apple", "B": "Banana"}When user inputs "A