python – Ruby – start

OK, let’s get started with our python to Ruby / Ruby to python page.

Strings:

syntax:

python:

string = "My string"   ->   "My string"
string = 'My string'   ->   'My string'

Ruby:

string = "My string"   ->   "My string"
string = 'My string'   ->   'My string
Advertisements