Python Forum
Search Results
Post Author Forum Replies Views Posted [asc]
    Thread: Subtracting gives a keyerror:
Post: RE: Subtracting gives a keyerror:

(Oct-03-2016, 11:02 AM)Larz60+ Wrote: Hello, When I run it on my system, I don't get an error: results: @@OOO@@ @@OOO@@ OOOOOOO OOOPOOO OOOOOOO @@OOO@@ @@OOO@@ 6 17 37 l Process finished with ex...
xepicxmonkeyx General Coding Help 7 16,558 Oct-03-2016, 03:42 PM
    Thread: Subtracting gives a keyerror:
Post: RE: Subtracting gives a keyerror:

(Oct-03-2016, 02:48 AM)Larz60+ Wrote: Please post your actual error traceback it is always very important in addition, just before the line that the code is failing on, add print statements for all...
xepicxmonkeyx General Coding Help 7 16,558 Oct-03-2016, 08:02 AM
    Thread: Subtracting gives a keyerror:
Post: Subtracting gives a keyerror:

To give some conext to the code you'll find in the link below, I'm making a system which brute forces the game Peg Solataire. It's grid is laid out in the dictionary, and within that dictionary is a s...
xepicxmonkeyx General Coding Help 7 16,558 Oct-02-2016, 10:04 PM
    Thread: Need to refer to Value of a key of a dictionary nested within a dictionary
Post: RE: Need to refer to Value of a key of a dictionar...

(Oct-02-2016, 02:26 AM)xepicxmonkeyx Wrote: (Oct-02-2016, 01:00 AM)metulburr Wrote: Quote:What I'm trying to do is print out the Character held in 'onScreen' by for-looping through the dictionary ...
xepicxmonkeyx General Coding Help 14 12,399 Oct-02-2016, 02:52 PM
    Thread: Need to refer to Value of a key of a dictionary nested within a dictionary
Post: RE: Need to refer to Value of a key of a dictionar...

(Oct-02-2016, 01:00 AM)metulburr Wrote: Quote:What I'm trying to do is print out the Character held in 'onScreen' by for-looping through the dictionary in the make_grid() function. Of course this wo...
xepicxmonkeyx General Coding Help 14 12,399 Oct-02-2016, 02:26 AM
    Thread: Need to refer to Value of a key of a dictionary nested within a dictionary
Post: Need to refer to Value of a key of a dictionary ne...

You can find my code at the link below, and you can ignore any commented sections of code (Accept the one in make_grid() ): link removed, code added below from __future__ import print_function from ...
xepicxmonkeyx General Coding Help 14 12,399 Oct-01-2016, 11:34 PM
    Thread: Building a patterned grid from a dictionary...
Post: RE: Building a patterned grid from a dictionary...

(Oct-01-2016, 05:14 AM)Larz60+ Wrote: Hello, What have you tried so far? A nested list might be better, and why not store character 'X' or 'O' that way there need not be a conversion. Larz60+Ove...
xepicxmonkeyx General Coding Help 3 18,140 Oct-01-2016, 06:39 PM
    Thread: Building a patterned grid from a dictionary...
Post: Building a patterned grid from a dictionary...

I'm making a peg solitaire type grid, with the peg holes being displayed as an 'O', and the corners where the pegs can't go (but must still have displayed something for the grid displayed to look like...
xepicxmonkeyx General Coding Help 3 18,140 Oct-01-2016, 02:35 AM

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020