def listar_restaurante():
exibir_subtitulo('Lista de restaurantes:')
print(f'{'Nome do restaurante'.ljust(22)} | {'Categoria'.ljust(20)} | Status')
# percorre a lista de restaurantes e lista todos cadastrados
for restaurante in restaurantes:
nome_do_restaurante = restaurante['nome']
categoria_do_restaurante = restaurante['categoria']
status_do_restaurante = 'Ativo' if restaurante['ativo'] else 'Inativo'
print(f'- {nome_do_restaurante.ljust(20)} | Categoria: {categoria_do_restaurante.ljust(20)} | Status: {status_do_restaurante}')
voltar_ao_menu_principal()
O cabeçalho de Status não está sendo exibido da maneira correta. Poderiam me ajudar a entender isso por favor?