How to draw the “trail” in a maze solving application

Hi , I want to write a program for that do this task: The user supposed to connect (1) than (A), (2) then (B), etc… as shown in the image .

The user should should be free to connect the nodes , and finally his/her response will be checked . which programming language is best for

doing this task , can I use python ?
Thanks