Re: [Tutor] Tutor Digest, Vol 147, Issue 10

2016-05-03 Thread Crusier
Thanks, Alan. Have a great day. Henry On Wed, May 4, 2016 at 12:00 AM, wrote: > Send Tutor mailing list submissions to > tutor@python.org > > To subscribe or unsubscribe via the World Wide Web, visit > https://mail.python.org/mailman/listinfo/tutor > or, via email, send a messa

Re: [Tutor] Dictionary Question

2016-05-03 Thread Michael Selik
On Mon, May 2, 2016 at 5:28 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" I want "Apple" to > come. But if the user enter "Apple" I want

Re: [Tutor] Dictionary Question

2016-05-03 Thread Michael Selik
On Mon, May 2, 2016 at 8:58 PM Jason N. via Tutor wrote: > What is the best way to make dictionary requests case in-sensitive? For > example, "Apple and "apple" should bring back the same dictionary > response. Thank you. > Take a look at how the requests library solves the problem with a "CaseI

Re: [Tutor] Python Homework CORRECTION rules -> tools (programs)

2016-05-03 Thread bob gailer
On May 3, 2016 3:04 AM, "Katie Tuite" > wrote: > > So the question is: > > "a contour plot is a graphic representation of the relationships among three numeric variables in two dimensions. Two variables are for X and Y axes, and a third variable Z is for contour lev

Re: [Tutor] sqlite

2016-05-03 Thread Alan Gauld via Tutor
On 03/05/16 10:09, Crusier wrote: > I am just wondering if there is any good reference which I can learn how to > program SQLITE using Python > > I can not find any book is correlated to Sqlite using Python. You can try my tutorial below. http://www.alan-g.me.uk/tutor/tutdbms.htm If you want v

Re: [Tutor] Dictionary Question

2016-05-03 Thread bharath ks via Tutor
Hello, Using iteritems would be much easier approach Something like this mydic = {"A": "Apple", "B": "Banana"} for key, value in mydic.iteritems():    if value == "Apple":        print key  Thanks & BR, Bharath Shetty On Tuesday, 3 May 2016 2:57 AM, Jason N. via Tutor wrote: Tha

[Tutor] sqlite

2016-05-03 Thread Crusier
Dear All, I am just wondering if there is any good reference which I can learn how to program SQLITE using Python I can not find any book is correlated to Sqlite using Python. Thank you Regards, Hank ___ Tutor maillist - Tutor@python.org To unsubscr