Exellent suggestion!<br>thanks!<br><br><br><br><div class="gmail_quote">On Thu, Apr 3, 2008 at 2:17 PM, Sander Sweers <<a href="mailto:sander.sweers@gmail.com">sander.sweers@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Should be replying to the list....Sorry :(<br>
<div><div></div><div class="Wj3C7c"><br>
On Thu, Apr 3, 2008 at 11:14 AM, Sander Sweers <<a href="mailto:sander.sweers@gmail.com">sander.sweers@gmail.com</a>> wrote:<br>
> On Thu, Apr 3, 2008 at 8:21 AM, Jeffrey Dates <<a href="mailto:jdates@kungfukoi.com">jdates@kungfukoi.com</a>> wrote:<br>
> > > > 3rd alternative: if c > 'm': print c<br>
><br>
> <snip><br>
><br>
><br>
> > "Write a program that prints the first letter of a string that comes after<br>
> > 'm' in the alphabet."<br>
> ><br>
> > s = "this is my string"<br>
> > for i in s:<br>
> > if i > 'm':<br>
> > print i<br>
> > break<br>
><br>
> One potential problem you will have is with upper case letters.<br>
><br>
> >>> 'N' > 'm'<br>
> False<br>
><br>
> To make input all lower case use .lower()<br>
><br>
> >>> 'N'.lower() > 'm'<br>
> True<br>
><br>
> Greets<br>
> Sander<br>
><br>
</div></div><div><div></div><div class="Wj3C7c">_______________________________________________<br>
Tutor maillist - <a href="mailto:Tutor@python.org">Tutor@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/tutor" target="_blank">http://mail.python.org/mailman/listinfo/tutor</a><br>
</div></div></blockquote></div><br>