It's often confusing to pick one of the two programming languages. Both the languages - Python and Java are battling for the top spot in the most popular programming languages.
Python has made fantastic progress over the years, and Java continues to hold on to its position. Java is used by 3.4% of all the websites, whereas Python comprises *1.4% of websites.
It often seems that both these languages are perfect and are capable of performing most of the tasks.