make sure you have matpoltlib, numpy pandas tensorflow and sklearn installed on whatever ide you work on along with mnist dataset you can get it on kaggle or Microsoft's official site if you don't have those.
the jpeg image file is output example of digit classification model