add snippets in c and python