Re: [Tutor] Printing multi-line variables horizontally

2014-08-08 Thread Steven D'Aprano
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

Re: [Tutor] Printing multi-line variables horizontally

2014-08-08 Thread emile
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

Re: [Tutor] Printing multi-line variables horizontally

2014-08-08 Thread Mark Lawrence
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

Re: [Tutor] Printing multi-line variables horizontally

2014-08-08 Thread Danny Yoo
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

Re: [Tutor] Printing multi-line variables horizontally

2014-08-08 Thread Alan Gauld
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

Re: [Tutor] Printing multi-line variables horizontally

2014-08-08 Thread emile
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

Re: [Tutor] Printing multi-line variables horizontally

2014-08-08 Thread Joel Goldstick
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