Python programming language is reliable enough to solve Machine Learning and Deep Learning problems. This paper describes how to solve earthquake prediction problems using the Python programming language that runs in the Jupyter Notebook environment. With the python library used, namely Keras. Deep Learning programming for this earthquake prediction system is the following programming sequence: data preparation, Keras model determination, Keras model compilation, Keras model adjustment, Keras model evaluation, and prediction system creation. From the test results of the earthquake prediction system using the python programming language, the results are quite satisfying. The simulation results show the results of the Deep Learning training process for the prediction system of b-value as an earthquake precursor with several iterations of 10,000 times, the results of MSE, RMSE, MAPE, and the percentage of successful predictions are 5.43 x 10 -5 ; 0.00737; 0.80897 and 99.19% respectively. The results of the Deep Learning testing process for the b-value prediction system as an earthquake precursor which was carried out during the five tests obtained an average of MSE, RMSE, MAPE and the percentage of successful predictions was 0.03886; 0.19003; 23.96459, and 77.75%.