+ 1
Is it easy to learn ruby if you know how to code in python?
looks to me as it's almost the same. ruby code-- puts "hello world" py code 2.x -- print "hello world" and py code 3.x -- print("hello world")
3 Answers
+ 10
The syntax is more or less the same so I think it might be easy
+ 7
In terms of basic coding they are the same, howrver if you become pro at both you'll notice they have big differences.
Ruby:
x = 10
if x < 20
puts "true"
end
Python:
x = 10
if x < 20:
print("true")
+ 4
I learned python before ruby, and yes, it is very easy.