Re: [Tutor] new to python

2017-07-23 Thread Anish Tambe
> for line in file: This line is not required as the you have opened your file to 'f'. 'file' is a built-in class. Type - help(file) on the interpreter to know more about it. > for line in f: > print(line.rstripe()) > f.close() Are you sure that you need to close the file aft

Re: [Tutor] Help with Python Queue

2016-11-26 Thread Anish Tambe
> AttributeError: Queue instance has no attribute 'taskdone' Method name is task_done (not taskdone) https://docs.python.org/2/library/queue.html#Queue.Queue.task_done ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options

Re: [Tutor] infix to postfix eval

2015-08-02 Thread Anish Tambe
On Sun, Aug 2, 2015 at 9:39 AM, Quiles, Stephanie wrote: > > hello again! > > I have to unify these methods so that i can enter an infix, convert it to a > postfix and then solve. Here are the methods At the end of your code I added this - inFixExpr = raw_input("Enter infix string : ") postFixE

Re: [Tutor] Python GPIO Code Help Needed

2014-10-26 Thread Anish Tambe
nt_detect(23, GPIO.RISING, callback=play) and similarly for the other pins. Check the "Events and Callback Functions" section of this tutorial - http://makezine.com/projects/tutorial-raspberry-pi-gpio-pins-and-python/ Cheers, Anish Tambe ___ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: https://mail.python.org/mailman/listinfo/tutor

Re: [Tutor] Help with running an API

2014-10-26 Thread Anish Tambe
The usage of the api as documented here - https://github.com/zachwill/fred - suggests : >>> import fred # Save your FRED API key. >>> fred.key('my_fred_api_key') # Interact with economic data categories. >>> fred.category() ... Cheers, Anish Tambe On 26 Oc