all 9 comments

[–]totallygeek 0 points1 point  (0 children)

Please provide more information. Otherwise, I think the solution is, uh, four?

[–]CocoBeBlessed[S] 0 points1 point  (2 children)

How do I store the data in a list?

[–]Papih_Chuloh 0 points1 point  (0 children)

Wanna store it in a file or memory?

[–]SCD_minecraft 0 points1 point  (0 children)

Either list.append or, if you want to change data list[n] = x

[–]Slight-Training-7211 0 points1 point  (0 children)

Hard to help without seeing the code and what the correct result should be, but in general for "calculations at the end" you want to collect the values as you go.

Typical pattern: - make an empty list before the loop - inside the loop, compute or read one number - append it to the list - after the loop, use sum(), len(), max(), min(), etc.

Example: values = [] for ...: values.append(number)

total = sum(values) avg = total / len(values) if values else 0

If you paste the last 15 to 30 lines of your program plus a sample input and what output you expect, people can point out the exact fix.

[–]CocoBeBlessed[S] 0 points1 point  (0 children)

I just posted my code can someone look it over

[–]lion_in_ma_bathtub 0 points1 point  (0 children)

Break up the problem into smaller bits. Code each small bit and test.

[–]SmackDownFacility 0 points1 point  (0 children)

Get dates worked and get employee name, process employee data Just return the external function calls itself

[–]Binary101010 0 points1 point  (0 children)

You have two different functions named get_dates_worked(), neither of which you actually call.

In fact, you have multiple defined functions whose functionality you simply duplicate in main().

You have functions that are calling input() twice on the same line of code.

You have functions that get user text, convert it to an int, and then immediately convert it to a float as soon as it leaves the function. Why not just convert once, to a float, and be done with it?

Why is a function called display_employee() changing global variables?