# Which is better for a beginner: R or Python? [closed]

From what I can tell, R and Python are the two most popular languages for data science.

My question is which one would you recommend for someone just starting out in data science? Does any one have any clear advantages on the other? Is any one easier to learn or does any one have more potential?

Thanks a lot!

• Programming language is just a tool not everything! I will vow for R as it's more versatile than Python is as of now but 1st and foremost, basics matter, Programming Languages don't...... Today you have Put,R's hype tomorrow they may be obsolete because of Julia maybe.. Sep 13, 2018 at 22:29

I think we might give you an infinite variety of answers, because each of us had a difference experience, different backgrounds and stories to tell. IMHO, the question itself has a serious problem: why choosing? Do you choose between a hammer and a nail to put a frame on the wall? No, because both are tools, as Python and R. Obviously, you would start learning only one of those but in the end, I would suggest learning both of them because, at least today, they are complementary. In my experience (scientific background, working with energy and climate data), Python is very good in handling large gridded datasets thanks to xarray and in performing fast computation, on the other hand I use R when I need the "last mile", i.e. when I have to process the data to visualize it (ggplot2 to day is the top library for data exploration and visualization) and to present it (the shiny library is very very easy to learn and effective). But while R syntax can be ugly and not consistent, Python is very elegant and definitely a modern programming language, the best solution when you need to write a lot of code with a OOP paradigm.