Serviria de mucho el mensaje de error<br><br>pero si pruebo tu script <br><br><br>while True:<br><br>    a = input(&quot;Introduzca la contraseña&quot;)<br>    if (a) == 1 :<br>        print a<br>        print (&quot;bien hecho&quot;)<br>
        break<br>    else:<br>        print a<br>        print (&quot;muy maal&quot;)<br><br>esta Bueno <br><br>El problema es la letra ñ en tu programa <br><br>si el error es este que te aparece <br><br>C:\py&gt;python testinput.py<br>
<br>  File &quot;testinput.py&quot;, line 3<br>SyntaxError: <b>Non-ASCII character &#39;\xf1&#39; </b>in file testinput.py on line 3, <br>but no encoding declared; see <a href="http://www.python.org/peps/pep-0263.html">http://www.python.org/peps/pep-0263.html</a> for details<br>
<br><br><br><a href="http://www.python.org/peps/pep-0263.html">http://www.python.org/peps/pep-0263.html</a>  <br><br><br><br><br><div class="gmail_quote">El 11 de agosto de 2011 19:28, Sergio ooooooo oooooooooooo o <span dir="ltr">&lt;<a href="mailto:sergery_98@hotmail.com">sergery_98@hotmail.com</a>&gt;</span> escribió:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">



<div><div dir="ltr">
Ponga lo que ponga siempre me da muy maal<br><br><div>&gt; From: <a href="mailto:davidmenhur@gmail.com" target="_blank">davidmenhur@gmail.com</a><br>&gt; Date: Fri, 12 Aug 2011 01:25:14 +0200<div class="im"><br>&gt; To: <a href="mailto:python-es@python.org" target="_blank">python-es@python.org</a><br>
&gt; Subject: Re: [Python-es] Problema al ejecutar script en linea de comandos        windows<br>&gt; <br></div><div><div></div><div class="h5">&gt; El significado de input ha cambiado de Python 2.x a 3.x. ¿Estás seguro<br>&gt; de que en la consola lo estás ejecutando con Python 3? Prueba a meter<br>
&gt; texto (sin números), si no te da error, estás en P3.<br>&gt; <br>&gt; 2011/8/12 Sergio ooooooo oooooooooooo o &lt;<a href="mailto:sergery_98@hotmail.com" target="_blank">sergery_98@hotmail.com</a>&gt;:<br>&gt; &gt; Bueno amigos tengo este miniscript(python 3.2)<br>
&gt; &gt;<br>&gt; &gt; while True:<br>&gt; &gt;<br>&gt; &gt;         a = input(&#39;Introduzca la contraseña&#39;)<br>&gt; &gt;<br>&gt; &gt;       if (a) == &#39;1&#39; :<br>&gt; &gt;            print (&#39;bien hecho!&#39;)<br>
&gt; &gt;            break<br>&gt; &gt;      else:<br>&gt; &gt;           print (&#39;muy maal&#39;)<br>&gt; &gt;<br>&gt; &gt;<br>&gt; &gt; Cuando lo ejecuto en el interprete va de maravilla ahora cuando lo ejecuto<br>&gt; &gt; como contraseña.py en la linea de comando de windows al poner 1 no me lo<br>
&gt; &gt; reconoce y me pone muy maal<br>&gt; &gt;<br>&gt; &gt; Saludos y gracias de adelantado :)<br>&gt; &gt;<br>&gt; &gt; _______________________________________________<br>&gt; &gt; Python-es mailing list<br>&gt; &gt; <a href="mailto:Python-es@python.org" target="_blank">Python-es@python.org</a><br>
&gt; &gt; <a href="http://mail.python.org/mailman/listinfo/python-es" target="_blank">http://mail.python.org/mailman/listinfo/python-es</a><br>&gt; &gt; FAQ: <a href="http://python-es-faq.wikidot.com/" target="_blank">http://python-es-faq.wikidot.com/</a><br>
&gt; &gt;<br>&gt; &gt;<br>&gt; _______________________________________________<br>&gt; Python-es mailing list<br>&gt; <a href="mailto:Python-es@python.org" target="_blank">Python-es@python.org</a><br>&gt; <a href="http://mail.python.org/mailman/listinfo/python-es" target="_blank">http://mail.python.org/mailman/listinfo/python-es</a><br>
&gt; FAQ: <a href="http://python-es-faq.wikidot.com/" target="_blank">http://python-es-faq.wikidot.com/</a><br></div></div></div>                                               </div></div>
<br>_______________________________________________<br>
Python-es mailing list<br>
<a href="mailto:Python-es@python.org">Python-es@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/python-es" target="_blank">http://mail.python.org/mailman/listinfo/python-es</a><br>
FAQ: <a href="http://python-es-faq.wikidot.com/" target="_blank">http://python-es-faq.wikidot.com/</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br><div style="text-align:right">Miguel Zamora M.<br>Programador en Computacion e Informatica<br>08-1351249<br><a href="mailto:mzmprog@gmail.com" target="_blank">mzmprog@gmail.com</a><br>
Santiago-Chile</div><div style="display:inline"></div><br>