Making conversation with openai

Can we implement the openai librray on python that aims tokeep a conversation with openai.
Let’s say I have this conversation :

A:how to use calculator
O : …
A: So what if it doesn’t work ?
O:…

So the next question is still related to tge previous question