Please ignore secret bonuses. Secret tests do NOT award bonus. Max hw grade is 30+2 bonus efficiency

Do you need help?

Notice Board

Per partecipare al corso di Fondamenti di programmazione 2023-24 loggatevi e attivatelo nella vostra pagina dei corsi preferiti. A quel punto il corso appare nel menù personale cliccando sul proprio avatar. Per i materiali degli anni precedenti seguite lo stesso metodo.

To join the Programming/Lab 2023-24 course, log-on and select it on the my courses page. It will appear on the personal menu of your avatar. For earlier years use the same method.

% Operatore di formato

a
a.pietroluongo (11250 points)
20 39 131
in Programmare in Python by (11.3k points)
closed by
Usando l'indicatore di formato % e non .format() , come posso specificare la larghezza del campo (gli spazi) se il valore l'ho salvato in una variabile?
342 views
closed with the note: risolto -  https://pyformat.info/

1 Answer

andrea.sterbini (207920 points)
750 1267 2373
by (208k points)