pyagenda: Use for instead of while, same logic

Change-Id: I9a18e2178f89f887a1243db77297cee0dd9c2310
fdo#69025 Remove unused text

Change-Id: I9fc60d52e1bc4b38b79e3e29ed1b04b3e8a777a1
Updated core
Project: translations  1e5e319682945255f7e519000c4a00fcefb5910f