writing items in list `thelist` to file `thefile`,"for item in thelist: