>
> > 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.
_______________________________________________
Tutor maillist  -  Tutor@python.org
http://mail.python.org/mailman/listinfo/tutor

Reply via email to