Comma quibbling: Difference between revisions
Content deleted Content added
added Ol |
|||
Line 540: | Line 540: | ||
=={{header|Astro}}== |
=={{header|Astro}}== |
||
<lang python>fun quibble(s): |
<lang python>fun quibble(s): |
||
let result = |
let result = s.join(' and ').replace(|| and ||, ", ", length(s) - 1) |
||
return "{ $result }" |
return "{ $result }" |
||
Line 551: | Line 551: | ||
for i in s: |
for i in s: |
||
print(quibble i) |
print(quibble i)</lang> |
||
</lang> |
|||
=={{header|AutoHotkey}}== |
=={{header|AutoHotkey}}== |