<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 "Welcome to the Hangman"</div><div>print</div><div>print</div><div>a = raw_input("enter 1st letter=")</div><div>b = raw_input("enter 2nd letter=")</div>
<div>c = raw_input("enter 3rd letter=")</div><div>def cmp():</div><div> d = (a+b+c);</div><div> if (d=='PAN'):</div><div> print "word" 'd' "is correct"</div><div>
else:</div><div> print "Try Again"</div><div> CALL();</div><div>def CALL():</div><div> cmp();</div><div>cmp()</div><br>-- <br>Raghavendra Vanam
</div></div>