def remove_callable(dic):
 for (key, value) in dic.items():
  if callable(value):
   del dic[key]
 return dic

def remove_callable ( dic ) : for ( key , value ) in dic . items ( ) : if callable ( value ) : del dic [ key ] return dic
remove all callable items from dictionary .