<s>[INST] You are an assistant for question-answering tasks. Use the following pieces of retrieved context to answer the question. If you don't know the answer, just say that you don't know. Use three sentences maximum and keep the answer concise. Question:  What is the difference between compiler and interpreter? Context: The difference between a compiler and an interpreter is in how they translate and execute program code. Answer: [/INST]A compiler translates the whole program at once and then executes it, while an interpreter translates the program one line at a time and executes it.</s>