In Python we can de-structure a list like this:
lista = [ "Maça", "Pera" ]
maca, pera = lista
print(maca, pera)
The output will be:
Maça Pera
I know that in PHP it is possible to get the result using the function list
$lista = [ "Maça", "Pera" ];
list($maca, $pera) = $lista;
echo "{$maca} {$pera}";
But I wonder if it is possible to get the result using the same notation or similar to Python?