In Python... In the following code, the user's input causes one of 5 lists to be printed. Is there a way to make one line that is something like:
print(", ".join(EmpX_list))
Where "X" could be the value of the user input, emp_num in this case? That way it is one line and not 5.
emp_num = int(input('Enter Employee Number:'))
if emp_num==1:
print(", ".join(Emp1_list))
if emp_num==2:
print(", ".join(Emp2_list))
if emp_num==3:
print(", ".join(Emp3_list))
if emp_num==4:
print(", ".join(Emp4_list))
if emp_num==5:
print(", ".join(Emp5_list))
Thanks in advance!