#NEWLINE# def note_something( speech_text ) : #NEWLINE# #INDENT# conn = sqlite3 . connect ( 'memory.db' ) #NEWLINE# words_of_message = speech_text . split ( ) #NEWLINE# words_of_message . remove ( 'note' ) #NEWLINE# cleaned_message = ' ' . join ( words_of_message ) #NEWLINE# conn . execute ( 'INSERT INTO notes (notes, notes_date) VALUES (?, ?)' , ( cleaned_message , datetime . strftime ( datetime . now ( ) , '%d-%m-%Y' ) ) ) #NEWLINE# conn . commit ( ) #NEWLINE# conn . close ( ) #NEWLINE# tts ( 'Your note has been saved.' )