+ 3
What is the difference between Ruby and Python?
Print as output
3 Answers
+ 6
print "this" ->Ruby
print("this")->Python
+ 2
@ Pegasus but prior to Python3 even python had same print as ruby but in py3 the print operator was tuned into function and one more thing the print equivalent of ruby is puts because print in ruby doesn't print a new line at the end.
For example:-
In Ruby--->
print 'one'
print 'two'
# output onetwo
In Python 3 --->
print('one')
print('two')
# output
# one
# two
0
Thanks