"Robert Sjöblom" wrote
Why would you want to sum them? You start with 30 points in the
pool,
then allocate them to the attributes. The sum will still be 30.
Because the user should be able to spend 30 points, or remove points
from an attribute and get them back in the pool. Like so:
attrib
On Mon, Nov 22, 2010 at 10:27 AM, wrote:
> Send Tutor mailing list submissions to
> tu...@python.org
>
[snip]
>> Ok, I'm clearly thinking in circles here. I used the interpreter to
>> figure out that both are fine but the first example has integers,
>> whereas the second has strings. Good
On 11/21/2010 6:29 PM, Robert Sjöblom wrote:
Hi. I'm new at programming and, as some others on this list, am going
through Python Programming for the Absolute Beginner. In the current
chapter (dealing with lists and dictionaries), one of the challenges
is to:
Write a Character Creator program fo
[Snip]
>> I don't want a direct answer on how to proceed, but a question that
>> arose during my thinking of the problem was whether dictionaries can
>> have integral data in them, like so:
>> attributes = {"Strength" : 28, "Health" : 12}
>> or if they have to be:
>> attributes = {"Strength" : "28"
On Mon, Nov 22, 2010 at 12:29 AM, Robert Sjöblom
wrote:
> Hi. I'm new at programming and, as some others on this list, am going
> through Python Programming for the Absolute Beginner. In the current
> chapter (dealing with lists and dictionaries), one of the challenges
> is to:
>>Write a Character
Hi. I'm new at programming and, as some others on this list, am going
through Python Programming for the Absolute Beginner. In the current
chapter (dealing with lists and dictionaries), one of the challenges
is to:
>Write a Character Creator program for a role-playing game. The player should
>be g