On Fri, Aug 08, 2014 at 01:50:53AM -0700, Greg Markham wrote:
[...]
> So, how would I get this to display horizontally?
>
> Like so...
> .-. .-.
> | | |o|
> | o | | |
> | | |o|
> `-' `-'
Nice question! I recommend that you try to solve the problem
On 08/08/2014 10:58 AM, emile wrote:
On 08/08/2014 01:50 AM, Greg Markham wrote:
die_1 = """
.-.
| |
| o |
| |
`-'"""
die_2 = """
.-.
|o|
| |
|o|
`-'"""
Not quite sure how this part was dropped...
>>> for line in zip(die_1.split("\n"),die_2.split("\n
On 08/08/2014 18:56, Joel Goldstick wrote:
On Fri, Aug 8, 2014 at 4:50 AM, Greg Markham wrote:
Hello,
Python novice back again. :) I'm making progress in my learning process,
but struggling whenever attempting to creatively go beyond what's required
in the various chapter assignments. For e
On Fri, Aug 8, 2014 at 1:50 AM, Greg Markham wrote:
> Hello,
>
> Python novice back again. :) I'm making progress in my learning process,
> but struggling whenever attempting to creatively go beyond what's required
> in the various chapter assignments. For example, there's a simple random
> die
On 08/08/14 09:50, Greg Markham wrote:
I wanted to make it a little more interesting by using ascii art
representations of the six die. When printing, however, they do so
vertically and not horizontally. Here's a snippet of the code:
die_1 = """
.-.
| |
| o |
| |
`-'"""
T
On 08/08/2014 01:50 AM, Greg Markham wrote:
die_1 = """
.-.
| |
| o |
| |
`-'"""
die_2 = """
.-.
|o|
| |
|o|
`-'"""
I'll leave the cleanup as an exercise for you.
HTH,
Emile
___
Tutor maillist - Tutor@py
On Fri, Aug 8, 2014 at 4:50 AM, Greg Markham wrote:
> Hello,
>
> Python novice back again. :) I'm making progress in my learning process,
> but struggling whenever attempting to creatively go beyond what's required
> in the various chapter assignments. For example, there's a simple random
> die