<div>Ok, here is my problem.  If a person has two  different people to order books for, then when using the loop option, How do you add the two seperate choices together for a  final total of books cost? </div><div><br clear="all">
 another='y'<br>    while another=='y' or another=='Y':<br>        choice()<br>        another=input('Do you have another book to order for this student? '+\<br>                      'Enter y for yes: ')</div>
<p>def choice():<br>    book=int(input('Enter the book chioce you want: ' +\<br>               'For Hardback Enter the number 1: ' +\<br>               'Paperback Enter the number 2: ' +\<br>               'Electronic Enter the number 3: '))<br>
    num=int(input('Enter how many you need: '))<br>    cost=0<br>    if book==1:<br>        cost=79<br>    elif book==2:<br>        cost=49<br>    elif book==3:<br>        cost=19<br>    b_total=float(cost*num)    <br>
    print('Your book cost is $ ',format(b_total,'.2f'))<br><br>-- <br>Amanda Colley<br>
</p>