Multiple variables in For loop #28
Replies: 1 comment
-
|
Yes. To unpack the key, values from the dictionary we can use, In for loop it should contain dict.items(). def employee_check(work_hours): work_hours = {'Employee1': 40, 'Employee2': 50, 'Employee3': 100, 'Employee4': 120} |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Need understanding on below ,Where for loop has 2 checks/variables
def employee_check(work_hours):
Beta Was this translation helpful? Give feedback.
All reactions