Staff = [
{
"name": "Мирлан",
"surname": "Исаев",
"date of Birth": "15.10.1998",
"position": "Director",
"phone": "760646",
"index": 0
},
{
"name": "Айбек",
"surname": "Усупбаев",
"date of Birth": "16.06.1997",
"position": "manager",
"phone": "623",
"index": 1
},
{
"name": "Санжар",
"surname": "Кылычбеков",
"date of Birth": "25.06.1999",
"position": "courier",
"phone": "2839",
"index": 2
},
{
"name": "Кирилл",
"surname": "Кононенко",
"date of Birth": "28.04.1998",
"position": "Director",
"phone": "2514",
"index": 3
},
{
"name": "Эмиль",
"surname": "Мамытов",
"date of Birth": "25.10.1995",
"position": "Cook",
"phone": "62636",
"index": 4
},
{
"name": "Ислам",
"surname": "Хафизов",
"date of Birth": "15.11.1998",
"position": "Cook",
"phone": "0257075",
"index": 5
},
]
FORMAT_STR = "{:<15} {:15} {:15} {:15} {:15} {:>15}"
def list_staff(staff_data):
print(FORMAT_STR.format('Name', 'Surname', 'Date of Birth', 'Position', 'Phone', 'Index'))
for staff in staff_data:
print(FORMAT_STR.format(
staff['name'],
staff['surname'],
staff['date of Birth'],
staff['position'],
staff['phone'],
staff['index']
))