Anonymous user
Repeat a string: Difference between revisions
→{{header|Python}}
(→Python) |
|||
Line 1,805:
# output:
# hahahahaha
=== Using Lambda ===
<lang python>x = lambda a: a * 5
print(x("ha"))</lang>
{{Out}}
<pre>hahahahaha</pre>
=={{header|Prolog}}==
|