#NEWLINE# def list_all_emoji( copy = False ) : #NEWLINE# #INDENT# all_keys = emojiCodeDict #NEWLINE# keys = sorted ( all_keys , key = ( lambda key : all_keys [ key ] ) ) #NEWLINE# to_copy = '' #NEWLINE# for word in keys : #NEWLINE# #INDENT# print ( ( ( keys + ' ' ) + emojiCodeDict [ word ] ) ) #NEWLINE# to_copy = ( ( ( ( to_copy + word ) + ' ' ) + emojiCodeDict [ word ] ) + '\n' ) #NEWLINE# #UNINDENT# if copy : #NEWLINE# #INDENT# xerox . copy ( to_copy )