[Tutor] Newb Learning Question
Jeffrey Dates
jdates at kungfukoi.com
Thu Apr 3 17:21:11 CEST 2008
>
> > 3rd alternative: if c > 'm': print c
>
after futzing around with interpreting the problem, I ended up with a
solution that utilizes the character comparison.
"Write a program that prints the first letter of a string that comes after
'm' in the alphabet."
s = "this is my string"
for i in s:
if i > 'm':
print i
break
Thanks for all the help everyone. Seems so obvious now.. ;-)
I'm sure I'll be back with some more newb questions in the future. ;-)
jeff.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.python.org/pipermail/tutor/attachments/20080403/8561f826/attachment.htm
More information about the Tutor
mailing list