With due respect sir, the last line of the function 'staircase' which says simply 'print' should be replaced with 'print('')' or else it is of no use.