<div dir="ltr">nope. that didn't fix it.<br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature">:-)~MIKE~(-:</div></div>
<br><div class="gmail_quote">On Mon, Apr 13, 2015 at 11:46 AM, Amit Nepal <span dir="ltr"><<a href="mailto:amit@amitnepal.com" target="_blank">amit@amitnepal.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You would probably want to wait and ask for the input inside the loop as well. What you seem to be doing is you ask for input and then you execute the loop not letting the user input the new number and thus running into an infinite loop.<br>
<br>
This might fix it, not tested though :)<span class=""><br>
<br>
print("Welcome.")<br>
g = input("Guess the number: ")<br>
guess = int(g)<br>
<br>
while guess != 5<br>
print("Guess again.")<br></span>
guess = int(g)<br>
print("Correct")<br>
<br>
<br>
Thanks<span class="HOEnZb"><font color="#888888"><br>
Amit</font></span><span class="im HOEnZb"><br>
On 4/13/2015 11:01 AM, Michael Havens wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
print("Welcome.")<br>
g = input("Guess the number: ")<br>
guess = int(g)<br>
while guess != 5:<br>
print("Guess again.")<br>
print("Correct")<br>
</blockquote>
<br></span><div class="HOEnZb"><div class="h5">
------------------------------<u></u>---------------------<br>
PLUG-discuss mailing list - <a href="mailto:PLUG-discuss@lists.phxlinux.org" target="_blank">PLUG-discuss@lists.phxlinux.<u></u>org</a><br>
To subscribe, unsubscribe, or to change your mail settings:<br>
<a href="http://lists.phxlinux.org/mailman/listinfo/plug-discuss" target="_blank">http://lists.phxlinux.org/<u></u>mailman/listinfo/plug-discuss</a><br>
</div></div></blockquote></div><br></div>