Advise which project with model to take for course work

Interested opportunity to train model so that example was like this. What kind project with model is necessary for student project implementation? Is there a ready C/C++ or Python framework?

Test train data:

#QUESTION
5 + 5
#QUESTION

#ANSWER
10
#ANSWER

#QUESTION
-1 - 10
#QUESTION

#ANSWER
-11
#ANSWER

Test chat example:

User: 5+5 AI: 10
User: 5 + 5 AI: 10
User: 5 - 10 AI: 
User: 8-1 - 10 AI: -11
User: -1 -(10 AI: -11
User: 100 + 100 AI: 

Answers should be strict, but question can be posed with extra characters or spaces.