Python function/argument 'not defined' error
<p>I'm very new to coding, and am working on an assignment in Python 3.5.2 and am getting a 'display_results not defined' error.  Am I placing it in the wrong section?<br>
Thanks in advance. </p>

<pre><code>hourly_pay_rate  = 7.50
commission_rate  = 0.05
withholding_rate = 0.25

def startup_message():
    print('''This program calculates the salesperson's pay.
Five values are displayed.
Hourly pay, commission, gross pay, withholding, and net pay.\n''')

def main():
    startup_message()
    name = input('Enter name: ')
    sales_amount = float(input('Enter sales amount: '))
    hours_worked = float(input('Enter hours worked: '))
    hourly_pay_amount = hours_worked * hourly_pay_rate
    commission_amount = sales_amount * commission_rate
    gross_pay = hourly_pay_rate + commission_rate
    withholding = gross_pay * withholding_rate
    net_pay = gross_pay - withholding
display_results#&lt;-----'not defined' error for calculations

def display_results(): #(parameters)
    print('Hourly pay amount is: ', \
          format(hourly_pay_amount, ',.2f'))
    print('Commission amount is: ', \
          format(commission_amount, ',.2f'))
    print('Gross pay is: ', \
          format(gross_pay, ',.2f'))
    print('Withholding amount is: ', \
          format(withholding, ',.2f'))
    print('Net pay is: ', \
          format(net_pay, ',.2f'))


main()
input('\nPress ENTER to continue...')
</code></pre>

<p>Your <code>display_result</code> is unindented. Correct the indentation and it should work</p>

<pre><code>def main():
    startup_message()
    name = input('Enter name: ')
    sales_amount = float(input('Enter sales amount: '))
    hours_worked = float(input('Enter hours worked: '))
    hourly_pay_amount = hours_worked * hourly_pay_rate
    commission_amount = sales_amount * commission_rate
    gross_pay = hourly_pay_rate + commission_rate
    withholding = gross_pay * withholding_rate
    net_pay = gross_pay - withholding
    display_results()#&lt;-----'not defined' error for calculations
</code></pre>

python undefined