It has versatile libraries. You always have a ready-made library in Python for any kind of application. From statistical programming to deep learning to network application to web crawling to embedded systems, you will always have a ready-made library in Python. If you learn this language, you do not have to stick to a specific use case. R has a rich set of analytics libraries, but if you are working on an Internet of Things (IoT) application and need to code in a device-side embedded system, it will be difficult in R.