rot13 as I/O encoding (was Re: Python-list Digest, Vol 171, Issue 7)

2017-12-06 Thread Chris Angelico
On Thu, Dec 7, 2017 at 5:11 AM, Peter Otten <__pete...@web.de> wrote: > Chris Angelico wrote: > >> On Thu, Dec 7, 2017 at 3:56 AM, Dennis Lee Bieber >> wrote: >>> Granted, the statistics module in newer Python releases makes the >>> entire assignment trivial... >>> >>> ClgubaJva 3.5.3 (qrs

Re: Python-list Digest, Vol 171, Issue 7

2017-12-06 Thread ROGER GRAYDON CHRISTMAN
On Wed, Dec 6, 2017, ssghotra1997 wrote: import random def rollDie(num): sides = {'One':0, 'Two':0,'Three':0,'Four':0,'Five':0,'Six':0} for i in range(num): rolls = int(random.randint(1, 6) if rolls == 1: sides['One'] += 1 if rolls == 2: si

Re: Python-list Digest, Vol 171, Issue 7

2017-12-06 Thread Peter Otten
Chris Angelico wrote: > On Thu, Dec 7, 2017 at 3:56 AM, Dennis Lee Bieber > wrote: >> Granted, the statistics module in newer Python releases makes the >> entire assignment trivial... >> >> ClgubaJva 3.5.3 (qrsnhyg, Wha 26 2017, 16:17:54) [ZFP i.1900 64 ovg >> (NZQ64)] ba jva32. > > Is t

Re: Python-list Digest, Vol 171, Issue 7

2017-12-06 Thread Chris Angelico
On Thu, Dec 7, 2017 at 3:56 AM, Dennis Lee Bieber wrote: > Granted, the statistics module in newer Python releases makes the > entire assignment trivial... > > ClgubaJva 3.5.3 (qrsnhyg, Wha 26 2017, 16:17:54) [ZFP i.1900 64 ovg > (NZQ64)] ba jva32. Is this from the Function Call of Cthulu

Re: Python-list Digest, Vol 171, Issue 7

2017-12-06 Thread ROGER GRAYDON CHRISTMAN
I think I also came up with 4 as "the most frequent number". It is unclear ot me how you came up with 3.36 as the most common number, because I tried rolling a six-sided die myself several times, and somehow 3.36 didn't come up even once! On Wed, Dec 6, 2017, D'Arcy Cain wrote: > On 12/05/2017 0