user64417
user64417

Reputation:

What's the quickest way for a Ruby programmer to pick up Python?

I've been programming Ruby pretty extensively for the past four years or so, and I'm extremely comfortable with the language. For no particular reason, I've decided to learn some Python this week. Is there a specific book, tutorial, or reference that would be well-suited to someone coming from a nearly-identical language, or should I just "Dive into Python"?

Thanks!

Upvotes: 17

Views: 4769

Answers (4)

AlbertoPL
AlbertoPL

Reputation: 11529

I suggest just diving into Python, it's similar to Ruby so you should have no problems:

https://diveintopython3.net/index.html

Upvotes: 2

Nadia Alramli
Nadia Alramli

Reputation: 115011

I started learning from the python tutorial. It is well written and easy to follow. Then I started to solve problems in python challenge. It was a really fun way to start :)

Upvotes: 3

bedwyr
bedwyr

Reputation: 5904

After running through some tutorials on-line (the ones posted so far look pretty good), find a current Ruby project you've done (or are working on) and re-write it in Python. I've used this technique to transition from various languages, and it's helped enormously.

Upvotes: 3

Sverre Rabbelier
Sverre Rabbelier

Reputation: 1506

A safe bet is to just dive into python (skim through some tutorials that explain the syntax), and then get coding. The best way to learn any new language is to write code, lots of it. Your experience in Ruby will make it easy to pick up python's dynamic concepts (which might be harder to get used to for say a Java programmer).

Try a python tutorial or book on learning python.

Upvotes: 11

Related Questions