Python program using lists <p>I am trying to write a program that displays an employee's id, their hours, payrate, and wages. </p> <p>The second part of the program requires that the user enter an employee's Id so that their wage will be displayed. </p> <p>The first part of my program works fine up until <code>pay=input()</code>. When I try to run it with the second part, it says that there is a syntax error. </p> <p>Here is my program:</p> <pre><code>employeeId=[56588,45201,78951,87775,84512,13028,75804] hours=[40,41,42,43,44,45,46] payrate=[13.60,13.50,13.40,13.30,13.20,13.10,13.00] wages=[544.00,553.50,562.80,571.90,580.80,589.50,598.00] print('employeeId\thours\t\tpayRate\t\twages') print(employeeId[0],'\t\t',hours[0],'\t\t',payrate[0],'\t\t',wages[0]) print(employeeId[1],'\t\t', hours[1],'\t\t',payrate[1],'\t\t',wages[1]) print(employeeId[2],'\t\t',hours[2],'\t\t',payrate[2],'\t\t',wages[2]) print(employeeId[3],'\t\t',hours[3],'\t\t',payrate[3],'\t\t',wages[3]) print(employeeId[4],'\t\t',hours[4],'\t\t',payrate[4],'\t\t',wages[4]) print(employeeId[5],'\t\t',hours[5],'\t\t',payrate[5],'\t\t',wages[5]) print(employeeId[6],'\t\t',hours[6],'\t\t',payrate[6],'\t\t',wages[6]) pay=input("Would you like to a see a specific employee's gross pay? Y/N:") if pay=='Y'or pay=='y': ID=input('enter employee Id:') if ID=='56588': print(ID': $',wages[0]) elif ID=='45201': print(ID': $',wages[1]) elif ID=='78951': print(ID': $',wages[2]) elif ID=='87775': print(ID': $',wages[3]) elif ID=='84512': print(ID': $',wages[4]) elif ID=='13028': print(ID': $',wages[5]) elif ID=='75804': print(ID': $',wages[6]) else: print(' ') </code></pre> <p>I'm seeing the following syntax error:</p> <pre><code> File "code.py", line 19 print(ID': $',wages[0]) ^ SyntaxError: invalid syntax </code></pre>