Hello Tutors,<br><br>&nbsp; I&#39;ve been messing around with a simple password generation script...no real crypto or anything, but a little stumped on the output.<br><br>#!/usr/bin/python<br>import random, string<br><br>pool = string.digits + string.letters + string.punctuation<br>
<br>for i in range(8):<br>&nbsp;&nbsp;&nbsp; print random.choice(pool)<br><br>&nbsp; This seems to do the job, but it lists the output with newlines, perhaps. For example:<br><br>$ ./passgen.py<br>t<br>C<br>(<br>2<br>w<br>P<br>x<br>3<br><br>
&nbsp; I thought that maybe adding &quot;print random.choice(pool).strip()&quot; might work but not having any luck with that. Is the output this way, simply because of the nature of the range, or can anyone point my in the right direction? Thanks in advance!<br>
<br>K<br>