Both Python and R have their own pros and cons. You can choose either Python or R depending on your interest. The pros of Python are that it is open-source and can be used for web development, software development, and data science. It is easy to learn compared and can be used for data-transformation, data-filtering, data-wrangling, machine learning, predictive analysis, etc.
The pros of R programming are that it is an open-source and used for performing mathematical and statistical computing, data science tasks, and also for data visualization. The cons are it is complex and tough to learn compared.