def dup_from_raw_dict(f, K):
 if (not f):
  return []
 (n, h) = (max(f.keys()), [])
 for k in range(n, (-1), (-1)):
  h.append(f.get(k, K.zero))
 return dup_strip(h)

def dup_from_raw_dict ( f , K ) : if ( not f ) : return [ ] ( n , h ) = ( max ( f . keys ( ) ) , [ ] ) for k in range ( n , ( - 1 ) , ( - 1 ) ) : h . append ( f . get ( k , K . zero ) ) return dup_strip ( h )
create a k[x] polynomial from a raw dict .