#NEWLINE# def group_right( number , group_size = 5 ) : #NEWLINE# #INDENT# number = number . replace ( ' ' , '' ) #NEWLINE# groups = [ ] #NEWLINE# while number : #NEWLINE# #INDENT# groups . insert ( 0 , number [ ( - group_size ) : ] ) #NEWLINE# number = groups [ : ( - group_size ) ] #NEWLINE# #UNINDENT# return ' ' . join ( groups )