On Tue, Jul 5, 2016 at 5:36 PM Michael Selik
wrote:
> On Sat, Jul 2, 2016 at 8:29 AM Alan Gauld via Tutor
> wrote:
>
>> There are arguably easier ways of doing this
>>
>
> I think you'll find that for-loops are preferable to while-loops. Here's
> an alternative implementation.
>
> https://gist.g
On Sat, Jul 2, 2016 at 8:29 AM Alan Gauld via Tutor
wrote:
> There are arguably easier ways of doing this
>
I think you'll find that for-loops are preferable to while-loops. Here's an
alternative implementation.
https://gist.github.com/selik/d8e0a7622ceff0fe8984a7d19d44bfca
import random
On 02/07/16 11:46, Minhaj Ahmed via Tutor wrote:
> have underlined the part of code I do not understand and why it is there.
The mailing list is plain text so formatting like underline
doesn't show up. Fortunately you added a comment too...
> so_far = "-" * len(word)
so_far is whats printed as