Created
November 21, 2024 14:08
-
-
Save davidrajm/e539247bc3d52c29fa1903214d6540e8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
def generate_employee_reporting(num_employees=10): | |
employees = [f"Employee_{i}" for i in range(num_employees)] | |
reporting = [] | |
for i in range(1, num_employees): | |
manager = random.choice(employees[:i]) | |
reporting.append((manager, employees[i])) | |
return employees, reporting | |
if __name__ == "__main__": | |
employees, reporting = generate_employee_reporting() | |
print("Employees:") | |
print(employees) | |
print("\nReporting Relationships:") | |
print(reporting) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment