Python and Ruby are among some of the most popular programming languages for developing websites, web-based apps, and web services.
In many ways, the two languages have a lot in common. Visually they are quite similar, and both provide programmers with high-level, object-oriented coding, an interactive shell, standard libraries, and persistence support. However, Python and Ruby are worlds apart in their approach to solving problems because their syntax and philosophies vary greatly, primarily because of their respective histories.
Which one to implement for web development requires some thought because all languages have strengths and weaknesses and your decision will have consequences.