Python and Ruby are currently very popular.Programming Language. They are ideal for building software prototypes. These two languages are also suitable for developing web applications.Program. The latest Ruby version is 1.9.2, and the latest Python version is 3.1.2.
Design Philosophy
Python is designed to improve program readability and programmer efficiency. Ruby emphasizes more programming fun for programmers. At the same time, Ruby can often solve the same problem in different ways. This is also because many methods may have different names in ruby. Python is totally opposed to this idea. In python, there should be only one way to solve the problem.
Object-oriented support
Both Python and Ruby support oo well.
Functional Programming
Both support functional programming. But some people think Ruby is more suitable for functional programming.
Running Speed
If we simply compare the two language runtime environments, we can say that their runtime speed is very similar. If you require a high speed, you can use some third-party frameworks, such as cython and Pyrex.
Audience
On the whole, there are more people using Python than Ruby. However, over the past few years, with the widespread use of Ruby on Rails frameworks, the use of Ruby has grown rapidly.
Encoding Style
Ruby sets allCodeAll are placed in blocks, and all blocks are ended with "end. Python code is very sensitive to indentation.