How about:<br><br>elif ch_val in ['040','011','012']:<br><br><br><br><div><span class="gmail_quote">On 6/14/06, <b class="gmail_sendername">Andrew Robert</b> &lt;<a href="mailto:andrew.arobert@gmail.com">andrew.arobert@gmail.com
</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">-----BEGIN PGP SIGNED MESSAGE-----<br>Hash: SHA1<br><br>Hi Everyone,<br>
<br>In the middle of an if then else, I have the following line<br><br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;elif ch_val == '040' or ch_val == '011' or ch_val == '012':<br><br><br>The line works but it is a little ungainly.<br><br>Anyone have a better way of accomplishing the same thing?
<br><br><br>- --<br>Thank you,<br>Andrew Robert<br><br>-----BEGIN PGP SIGNATURE-----<br>Version: GnuPG v1.2.1 (MingW32)<br>Comment: GnuPT 2.7.2<br><br>iD8DBQFEkFgfDvn/4H0LjDwRAophAKCZbJaMWBr2G8dLjHO3VtOA98/+1gCbBsys<br>4B/Q6g9m+3DW+PzcnCpki6k=
<br>=t0E4<br>-----END PGP SIGNATURE-----<br>_______________________________________________<br>Tutor maillist&nbsp;&nbsp;-&nbsp;&nbsp;<a href="mailto:Tutor@python.org">Tutor@python.org</a><br><a href="http://mail.python.org/mailman/listinfo/tutor">
http://mail.python.org/mailman/listinfo/tutor</a><br></blockquote></div><br>