That&#39;s Bob, and Tony,&nbsp; exactly what I&#39;m looking for. ( not the answer, but the path to it... )<br><br>Let me get back to you with my result after I study this a bit.<br>thanks!!<br><br>Jeffrey Dates<br><a href="http://www.kungfukoi.com">www.kungfukoi.com</a><br>
<br><br><br><br><div class="gmail_quote">On undefined, bob gailer &lt;<a href="mailto:bgailer@alum.rpi.edu">bgailer@alum.rpi.edu</a>&gt; wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="Ih2E3d">Jeffrey Dates wrote:<br>
&gt; Greetings,<br>
&gt;<br>
&gt; I have no previous experience in scripting. &nbsp;Python is my first<br>
&gt; language...<br>
&gt; I&#39;m currently trying to build a logic model for how to &#39;think&#39; in<br>
&gt; Python, so please excuse my ignorance.<br>
&gt;<br>
&gt; Currently, I&#39;m running through some basic 101 tutorials, to wrap my<br>
&gt; head around solving problems.<br>
&gt; I&#39;m looking for some advice on how to solve the following exercise:<br>
&gt;<br>
&gt; &quot;Write a program that prints the first letter of a string that comes<br>
&gt; after &#39;m&#39; in the alphabet.&quot;<br>
&gt;<br>
</div><div class="Ih2E3d">&gt; what I had so far:<br>
&gt;<br>
&gt; for code in range(ord(&quot;a&quot;), ord(&quot;z&quot;) +1):<br>
&gt; &nbsp; &nbsp; if code == ord(&quot;m&quot;):<br>
&gt; &nbsp; &nbsp; &nbsp; &nbsp; print chr(code +1)<br>
&gt;<br>
&gt; Now, this solves for the first letter after &quot;M&quot;<br>
<br>
</div>which is NOT what the exercise wants!<br>
<br>
Consider &quot;are you ready?&quot;. Which character is the first that comes after<br>
&#39;m&#39; in the alphabet.&quot;?<br>
<br>
BTW did you mean after &quot;m&quot;? Caps and lower case are different.<br>
<div class="Ih2E3d"><br>
&gt; , but doesn&#39;t do it via a string....<br>
<br>
</div>I for one am reluctant to just give an answer. I prefer to lead you to a<br>
solution.<br>
<br>
So, I suggest you write a program to:<br>
 &nbsp; &nbsp;assign a candidate string to a variable (choose a string that has at<br>
least one letter that &quot;comes after &#39;m&#39;&quot;)<br>
 &nbsp; &nbsp;test each character to see if it &quot;comes after &#39;m&#39;&quot;<br>
 &nbsp; &nbsp;print that character<br>
 &nbsp; &nbsp;stop<br>
<br>
Do as much as you can, and ask more questions.<br>
<font color="#888888"><br>
--<br>
Bob Gailer<br>
919-636-4239 Chapel Hill, NC<br>
<br>
</font></blockquote></div><br>