摘要:Introduction: Dementia is a common medical condition of older people which is marked by the decline of multiple cognitive abilities, such as memory and communication. Currently, there is no effective treatment for curing dementia, making prevention the most priority to this disease. Previous studies showed that cognitive ability training, such as mathematical problem solving, has a potential to slow down cognitive decline. The aim of this project is to create a simple yet interactive mathematical quiz as a way to train one’ cognitive ability and reduce the risk of getting dementia. Material and Methods: The quiz was created by using tkinter module and its built-in functions in Python programming language. Results: The result showed that the quiz was simple but involved an active role of the user to input the answer. It also did not have certain time limit, preventing the user to feel rushed or burdened in doing the quiz. In addition, three different types of difficulty were provided to give a challenging atmosphere to the game. Conclusion: As a conclusion, this quiz provides a simple way for people to regularly train their cognitive skill, so the risk of getting dementia, especially in elderly stage, can be reduced.