<div>Hi all, this is my first program in python.</div>
<div>&nbsp;</div>
<div>It's a currency converter mini-program, but I am not getting the desired output. What wrong am I doing here?</div>
<div>&nbsp;</div>
<div><strong>Program code:</strong></div>
<div>&nbsp;</div>
<div>#converts currencies to Indian rupees</div>
<div>
<p>def print_options():<br>&nbsp;&nbsp;&nbsp; print &quot;Options:&quot;<br>&nbsp;&nbsp;&nbsp; print &quot; 'p' print options&quot;<br>&nbsp;&nbsp;&nbsp; print &quot; 'c' convert from US Dollars to Indian Rupees&quot;<br>&nbsp;&nbsp;&nbsp; print &quot; 'f' convert from Swedish Kronors to Indian Rupees&quot;
<br>&nbsp;&nbsp;&nbsp; print &quot; 'g' convert from British Pound Sterling to Indian Rupees&quot;<br>&nbsp;&nbsp;&nbsp; print &quot; 'q' quit the program&quot;</p>
<p>def rupees_from_dollars(c_doll):<br>&nbsp;&nbsp;&nbsp; return 43*1 --<strong>The function is supposed to multiply the value of dollars x 43(value of an Indian rupee)<br></strong>def rupees_from_kronor(f_kron):<br>&nbsp;&nbsp;&nbsp; return 8*f_kron --
<strong>The function is supposed to multiply the value of&nbsp;kronor x 8(value of an Indian rupee)</strong><br>def rupees_from_pounds(g_pound):<br>&nbsp;&nbsp;&nbsp; return 68*g_pound --<strong>The function is supposed to multiply the value of&nbsp;pounds x 68(value of an Indian rupee)
</strong><br></p>
<p>choice = &quot;p&quot;<br>while choice != &quot;q&quot;:<br>&nbsp;&nbsp;&nbsp; if choice == &quot;c&quot;:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rupees = input(&quot;US Dollars:&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Rupees:&quot;,--<strong>The problem is here: I only get Rupees but not the value multiplied as stated in the function.
</strong><br>&nbsp;&nbsp;&nbsp; elif choice == &quot;f&quot;:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rupees = input(&quot;Swedish Kronor:&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Rupees:&quot; --<strong>The problem is here: I only get Rupees but not the value multiplied as stated in the function.
</strong><br>&nbsp;&nbsp;&nbsp; elif choice == &quot;g&quot;:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Rupees = input(&quot;UK Sterling:&quot;)<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print &quot;Rupees:&quot;--<strong>The problem is here: I only get Rupees but not the value multiplied as stated in the function.
</strong><br>&nbsp;&nbsp;&nbsp; elif choice != &quot;q&quot;:<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; print_options()<br>&nbsp;&nbsp;&nbsp; choice = raw_input(&quot;option:&quot;)<br></p>
<p>-----------------------------------------</p>
<p>Much appreciate your help!</p>
<p>VikasM</p></div>
<div><strong></strong>&nbsp;</div>
<div><strong></strong>&nbsp;</div>