> On Aug 3, 2016, at 20:54, Jim Byrnes wrote:
>
> Is the second example a special case?
>
> phoneNumRegex = re.compile(r'(\(\d\d\d\)) (\d\d\d-\d\d\d\d)')
> mo = phoneNumRegex.search('My phone number is: (415) 555-4242.')
> print(mo.group(1))
> print()
>
> Based on both replies I got, JSON is what I will use.
>
> I do need the keys in the dictionary to be numerals, specifically they are
> integers.
>
> I believe after I load a stored pt_table, I can use this script to convert
> the keys back to integers.
>
> pt_table = dict((int(key), value) for
On 03/08/16 20:49, Jim Byrnes wrote:
> Regular Expressions he talks about the python escape character being a
> '\' and regex using alot of backslashes.
In effect there are two levels of escape character, python and
the regex processor. Unfortunately they both use backslash!
Python applies its
On 03/08/16 18:58, Justin Korn via Tutor wrote:
> This is what I have so far:
OK, This is starting to look a bit random.
You need to slow down and work through what is happening
in each method and especially what data is being passed
around where. At the moment it makes no sense whatsoever.
>
To whom it may concern,
I need someone to make changes to the following assignment:
XYZ Corporation sells products online. The company has a large warehouse in
which it stores its inventory of products. Orders are picked, packed and
shipped from the warehouse.
XYZ Corporation has
I am reading Automate The Boring Stuff With Python. In the chapter on
Regular Expressions he talks about the python escape character being a
'\' and regex using alot of backslashes. Then he says, However,
by putting an r before the first quote of the string value, you can
mark the string as
On 03/08/16 12:25, Trevor H wrote:
> I am trying to create a website that could dynamically get data
> ... but I'm not sure about how I would go plotting the data
> into a pie chart ...
There are basically three ways to tackle this.
1) Create the chart as an image on the server and
then
Hi all,
I am trying to create a website that could dynamically get data from an SQLite3
database and create it into a website. I know how to install Django, tell it to
use an existing database (in setting.py) but I'm not sure about how I would go
plotting the data into a pie chart from here
> Date: Tue, 2 Aug 2016 12:14:04 +1000
> From: st...@pearwood.info
> To: tutor@python.org
> Subject: Re: [Tutor] data storage question
>
> On Mon, Aug 01, 2016 at 04:47:32PM -0400, Colby Christensen wrote:
>
>> I'm a novice programmer. I have a decent
On 03/08/16 06:34, Justin Korn via Tutor wrote:
> Data for Analysis is saved in this order on each line of the file:
> [orderNumber, partNumber, quantyNumber, aisleNumber, shelfNumber, binNumber]
>
>
> This is what I have so far:
>
> infile = open("warehouse_data.txt", "r")
>
> class Order():
To whom it may concern,
I need help creating a program for the following assignment:
XYZ Corporation sells products online. The company has a large warehouse in
which it stores its inventory of products. Orders are picked, packed and
shipped from the warehouse.
XYZ Corporation has
>I'm trying to write a program w/ python that runs once a day and every time it
>does it adds 20 to a variable. How do I do this so it doesn't reset the
>variable to the original value every time I run it?
You can output the value to a file? Then re-read the file once a day and
assign that
Chris Clifton via Tutor wrote:
> I have been practicing with strings. Splitting them, joining them,
> changing case. All has been going well but came across a exercise in one
> of the code practice sites that has you changing the case of different
> characters in a string. Anything in upper
13 matches
Mail list logo