def convert_id32(id_64):
 out = ['STEAM_0:']
 final = (id_64 - ID_BASE)
 if ((final % 2) == 0):
  out.append('0:')
 else:
  out.append('1:')
 out.append(str((final // 2)))
 return ''.join(out)

def convert_id32 ( id_64 ) : out = [ 'STEAM_0:' ] final = ( id_64 - ID_BASE ) if ( ( final % 2 ) == 0 ) : out . append ( '0:' ) else : out . append ( '1:' ) out . append ( str ( ( final // 2 ) ) ) return '' . join ( out )
takes a steam id_64 formatted id and returns a id_32 formatted id :type id_64: int :return: str .