<div dir="ltr">hi all,<div><br></div><div>i am new to programming, i just started writing scripts in python about functions.There is a program by name hangman where in i take input three characters and then concatenate the resultant output is compared to a three letter string, if it is similar it will display the word as correct if not i want to execute the same function which evokes to prompt for three characters as input. The problem is i am not getting a runtime error.</div>
<div>below is the piece of code:</div><div><div>#word Hangman</div><div>print &quot;Welcome to the Hangman&quot;</div><div>print</div><div>print</div><div>a = raw_input(&quot;enter 1st letter=&quot;)</div><div>b = raw_input(&quot;enter 2nd letter=&quot;)</div>
<div>c = raw_input(&quot;enter 3rd letter=&quot;)</div><div>def cmp():</div><div>&nbsp;&nbsp; &nbsp;d = (a+b+c);</div><div>&nbsp;&nbsp; &nbsp;if (d==&#39;PAN&#39;):</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;print &quot;word&quot; &#39;d&#39; &quot;is correct&quot;</div><div>
&nbsp;&nbsp; &nbsp;else:</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;print &quot;Try Again&quot;</div><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;CALL();</div><div>def CALL():</div><div>&nbsp;&nbsp; &nbsp;cmp();</div><div>cmp()</div><br>-- <br>Raghavendra Vanam
</div></div>