Relative Content

Tag Archive for pythonfor-loop

FOR loop Project

I am in a python coding class. I was asked to do a FOR loop project where the project reads the number or the name of an employee and pops the name with the pay of the employee. The range is 5. These are the instructions:
With this programming project I want you to use a FOR loop to incorporate into your Employee Pay program and now rather than run through a single employee, calculate the pay and end it should loop through a specific number of employees. As in if your company happens to have 5 employees then it should loop 5 times for each of the 5 different employees and THEN end.
You will have one (this one) where you have 5, 10 a certain specific number of employees – 10 for example – (the 2nd Iteration – the next program- will be where you may have an “unknown” number and you must quit at a prompt of for example when the employee number entered is “999” – This loop will be a FOR loop where a basic example might look something like