#NEWLINE# def octaltodecimal( number ) : #NEWLINE# #INDENT# number = str ( number ) [ : : ( - 1 ) ] #NEWLINE# total = 0 #NEWLINE# for x in xrange ( 0 , len ( str ( number ) ) ) : #NEWLINE# #INDENT# total = ( total + ( int ( number [ x ] ) * ( 8 ** x ) ) ) #NEWLINE# #UNINDENT# return total