✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
En Python es pot afegir una clàusula else en una estructura repetitiva, com es veu a continuació:
Bucle while:
# inicialització variableswhile condició: # cos del bucleelse: #instruccionsBucle for:
for variable in llista: # cos del bucleelse: #instruccions
Convé tenir-ne molt clar el funcionament perquè és molt útil en programació estructurada.