A bit of context, the user enters employee name, hourly wage, and hours worked. I am suppose to format all of this data into a 2-d list, and then find the payroll for each employee based off the entered wage and hours worked. Program is then suppose to output employee name and how much they are suppose to be paid. Not sure how to turn variable info into a 2-d list. User is to input data as "name, hourly wage, hours worked", so for example "John, 15, 35"
def main():
payroll = 0
employee_list = []
new_list = []
print('Payroll for the Global Thingamabob Manufacturing Company')
print('Enter Information ( Name, hours worked, hourly rate) seperated by commas')
print('Press Enter to stop Enetering Employee Information')
info = input('Enter Employee Information: ')
while info != '':
employee_list = info.split()
info = input('Enter Employee Information: ')
print()
print('Total Payroll ${:.2f}'.format(payroll))
print()
print('Employees with Paychecks')
main()