Talk:Longest string challenge: Difference between revisions

→‎Request for Python explanation: because Dgamey doesn't like op functions
(→‎Request for Python explanation: because Dgamey doesn't like op functions)
Line 105:
print(maxlines, end='')</lang>
It would help me understand the task a little better. Thanks. --[[User:Paddy3118|Paddy3118]] 06:39, 14 August 2011 (UTC)
: Under "No comparisons" above, Dgamey specifically listed "no comparison functions like lt(a, b)", so that pretty much ruled out <code>op.gt</code>. <code>op.concat</code> would have been fine, but <code>lines += x</code> is simpler. The <code>longer</code> function uses only substring and boolean operations (the <code>and</code> can be turned into nested <code>if</code> blocks if booleans ops are not allowed), so I think it does not breach the requirement of the task. --[[User:Ledrug|Ledrug]] 06:51, 14 August 2011 (UTC)
Anonymous user