(conn, stream_name, words)
Put each word in the provided list of words into the stream.

    :type conn: boto.kinesis.layer1.KinesisConnection
    :param conn: A connection to Amazon Kinesis

    :type stream_name: str
    :param stream_name: The name of a stream.

    :type words: list
    :param words: A list of strings to put into the stream.
Put each word in the provided list of words into the stream.
Put each word in the provided list of words into the stream .
def put_words_in_stream(conn, stream_name, words):
    '''
    Put each word in the provided list of words into the stream.

    :type conn: boto.kinesis.layer1.KinesisConnection
    :param conn: A connection to Amazon Kinesis

    :type stream_name: str
    :param stream_name: The name of a stream.

    :type words: list
    :param words: A list of strings to put into the stream.
    '''
    for w in words:
        try:
            conn.put_record(stream_name, w, w)
            print("Put word: " + w + " into stream: " + stream_name)
        except Exception as e:
            sys.stderr.write("Encountered an exception while trying to put a word: "
                             + w + " into stream: " + stream_name + " exception was: " + str(e))
def put_words_in_stream ( conn , stream_name , words ) : for w in words : try : conn . put_record ( stream_name , w , w ) print ( "Put word: " + w + " into stream: " + stream_name ) except Exception as e : sys . stderr . write ( "Encountered an exception while trying to put a word: " + w + " into stream: " + stream_name + " exception was: " + str ( e ) )