How to add conversation history to a thread in Assistants API?

I want to use assistants API to handle context and follow up questions. On reading the documentation I see that thread do this automatically. Can someone pls provide a python code example showing how a follow-up question is passed into a thread.