> Another option for you would be a shelve.(See the shelve module
> in the standard library) A file that acts like a dictionary.
> You can store a list of values against a single key.
It's probably worth mentioning that shelve is not secure; loading a
saved shelf can involve executing arbitrary py
Hi Ken,
On 3 January 2012 01:24, Alan Gauld wrote:
>>> If you to store the data permanently, it has to go into a file. I
>>> suggest you learn about INI files to start with. Start by googling for
>>
>> Okay, thanks. I will look into it. Have not heard of INI file format.
>
>
> It's a Microsoft te
On 01/02/2012 08:52 PM, shane wrote:
I was wondering is there a way to have a variable generate a random
integer each time the variable is called.
Ive tried random.randint(a, b) and the range one to.
It selects a random number and assigns it to the variable
this part of the program would be mat
I was wondering is there a way to have a variable generate a random
integer each time the variable is called.
Ive tried random.randint(a, b) and the range one to.
It selects a random number and assigns it to the variable
this part of the program would be math equations
with random number selecti
On 03/01/12 00:31, Ken G. wrote:
If you to store the data permanently, it has to go into a file. I
suggest you learn about INI files to start with. Start by googling for
Okay, thanks. I will look into it. Have not heard of INI file format.
It's a Microsoft text file format invented for use on
On 01/02/2012 05:47 PM, Steven D'Aprano wrote:
Ken G. wrote:
I have been using an Open Office Spreadsheet containing basically,
the food name, basic serving amount, calories, sodium and
carbohydrate. Daily, I entered the servicing amount being eaten and
its calculate the amount of calories,
On 02/01/12 20:20, Tamar Osher wrote:
Hi! I have never before learned a programming language, and I started
learning Python a couple of days ago. I am wondering: *How does a person
make the leap from reading about Python to doing Python?*
You install Python and start typing in code rather than
Ken G. wrote:
I have been using an Open Office Spreadsheet containing basically, the
food name, basic serving amount, calories, sodium and carbohydrate.
Daily, I entered the servicing amount being eaten and its calculate the
amount of calories, sodium and carbohydrate. For some odd reason, I
Tamar Osher wrote:
Hi! I have never before learned a programming language, and I started
learning Python a couple of days ago. I am wondering: How does a person
make the leap from reading about Python to doing Python?
Open a terminal window, or an IDE, and start typing code.
That's it. There
I have been using an Open Office Spreadsheet containing basically, the
food name, basic serving amount, calories, sodium and carbohydrate.
Daily, I entered the servicing amount being eaten and its calculate the
amount of calories, sodium and carbohydrate. For some odd reason, I
kept losing th
On Jan 2, 2012 12:22 PM, "Tamar Osher" wrote:
>
> Hi! I have never before learned a programming language, and I started
learning Python a couple of days ago. I am wondering: How does a person
make the leap from reading about Python to doing Python?
Not directly responding to the petition for ch
On the python site there is a tutorial called, something like, a non-programers
guide to python. That is how I started to learn. I then bought somw beginer
books. I then thought of some problems I wanted to solve and like eighteen
months later I'm still working on those problems, but along the
On Mon, Jan 2, 2012 at 1:43 PM, Walter Prins wrote:
> Hi,
>
> On 2 January 2012 18:07, Alan Gauld wrote:
> > There may be a few cash registers rthat implemenmt their own embedded
> > hardware monitor but the cost of developing such a thing is so high
> > (especially compared to Linux!) that most
Hi! I have never before learned a programming language, and I started learning
Python a couple of days ago. I am wondering: How does a person make the leap
from reading about Python to doing Python?
There seems to be many fabulous online tutorials. I have read all the info at
tutorialspoint.
Hi,
On 2 January 2012 18:07, Alan Gauld wrote:
> There may be a few cash registers rthat implemenmt their own embedded
> hardware monitor but the cost of developing such a thing is so high
> (especially compared to Linux!) that most devices like that use a regular OS
> and just disguise it with a
On 02/01/12 16:30, Alexander wrote:
Hi. Just curious if there are any ideas on how to use python with a
touch screen. That is a stand alone touchscreen, not something running
on a desktop or personal computer;
A touchscreen has no intrrinsic iontelligence so it must have sopme kind
of computer
Hi. Just curious if there are any ideas on how to use python with a touch
screen. That is a stand alone touchscreen, not something running on a
desktop or personal computer; consider a touch screen dedicated to one
purpose, like a cash register, running python.
Thanks,
Alexander
___
Hi again,
On 2 January 2012 06:28, Steven D'Aprano wrote:
>> Another answer is to use Decimal class, which CAN represent decimal values
>> exactly.
>
>
> That only applies to decimal values which can be represented using a fixed
> number of decimal places. So 1/5 is fine, and is 0.2 exactly, but
(You accidentally forgot to include the list when you replied. The
easiest way (for most people) to avoid that is to use Reply-all)
On 01/02/2012 01:00 AM, Sarma Tangirala wrote:
On 2 Jan 2012 08:56, "Dave Angel" wrote:
Easiest answer is to use integers. Scale everything up by a factor of
Hi Steven,
On 2 January 2012 06:28, Steven D'Aprano wrote:
> That only applies to decimal values which can be represented using a fixed
> number of decimal places. So 1/5 is fine, and is 0.2 exactly, but 1/3 is
> not, since it would require an infinite number of decimal places.
Just a small nit
20 matches
Mail list logo