Sraffa studied in his town and graduated at the local university with a work on inflation in Italy during and after World War I. Notably his tutor was Luigi Einaudi one of the most important Italian economists and later a president of the Italian Republic .