4 ms·
Python has far more custom syntax than Ruby. In Ruby an elegant syntax like blocks solves many problems, in Python each problem has custom syntax.
by jshen 3y ago
Python has far more custom syntax than Ruby. In Ruby an elegant syntax like blocks solves many problems, in Python each problem has custom syntax.
- hnfong 3y agoQuick, which language is this written in? a = [1,2,3,4] for b in a print(b) end
- jshen 3y agoHere's some advice. If you want to make a point, make it clear and direct. No one knows what point you are trying to make here.
- hnfong 3y agoHere's some advice - don't give unsolicited advice.
- dorianmariefr 3y agoend is ruby :) But you would write `[1, 2, 3, 4].each { |n| print(n) }`