They're different programming languages. Both are high level, built on the programming language C.
Python has way more users than Ruby.
A lot of Python's usage are in the academia community.
Usage geared towards machine learning and data science.
Python can also be used for web development and has a popular framework - Django
Ruby is popularized by the Ruby on Rails web development framework.
Far more mature web development ecosystem compared to Python.
Most Ruby developers are working on Ruby on Rails.
Join 31,152+ developers who get early access to new screencasts, articles, guides, updates, and more.