Z13091: Difference between revisions

From Wikifunctions
fix key name
Tag: Reverted
-e Logic removed
Tag: Reverted
Line 14: Line 14:
"Z61K1": "python"
"Z61K1": "python"
},
},
"Z16K2": "def Z13087(Z13087K1):\n\timport re\n\tif Z13087K1.endswith('e')\n\t return Z13087K1[:-1] + 'ing'\n if Z13087K1.endswith('k') \\\n\t\t\tand not Z13087K1.endswith('kk') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]k$', Z13087K1):\n\t\treturn Z13087K1 + 'king'\n\tif Z13087K1.endswith('n') \\\n\t\t\tand not Z13087K1.endswith('nn') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]n$', Z13087K1):\n\t\treturn Z13087K1 + 'ning'\n\tif Z13087K1.endswith('t') \\\n\t\t\tand not Z13087K1.endswith('tt') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]t$', Z13087K1):\n\t\treturn Z13087K1 + 'ting'\n\tif Z13087K1.endswith('d') \\\n\t\t\tand not Z13087K1.endswith('dd') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]d$', Z13087K1):\n\t\treturn Z13087K1 + 'ding'\n\tif Z13087K1.endswith('g') \\\n\t\t\tand not Z13087K1.endswith('gg') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]g$', Z13087K1):\n\t\treturn Z13087K1 + 'ging'\n\tif Z13087K1.endswith('p') \\\n\t\t\tand not Z13087K1.endswith('pp') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]p$', Z13087K1):\n\t\treturn Z13087K1 + 'ping'\n\tif Z13087K1.endswith('b') \\\n\t\t\tand not Z13087K1.endswith('bb') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]b$', Z13087K1):\n\t\treturn Z13087K1 + 'bing'\n\treturn Z13087K1 + 'ing'"
"Z16K2": "def Z13087(Z13087K1):\n\timport re\n if Z13087K1.endswith('k') \\\n\t\t\tand not Z13087K1.endswith('kk') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]k$', Z13087K1):\n\t\treturn Z13087K1 + 'king'\n\tif Z13087K1.endswith('n') \\\n\t\t\tand not Z13087K1.endswith('nn') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]n$', Z13087K1):\n\t\treturn Z13087K1 + 'ning'\n\tif Z13087K1.endswith('t') \\\n\t\t\tand not Z13087K1.endswith('tt') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]t$', Z13087K1):\n\t\treturn Z13087K1 + 'ting'\n\tif Z13087K1.endswith('d') \\\n\t\t\tand not Z13087K1.endswith('dd') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]d$', Z13087K1):\n\t\treturn Z13087K1 + 'ding'\n\tif Z13087K1.endswith('g') \\\n\t\t\tand not Z13087K1.endswith('gg') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]g$', Z13087K1):\n\t\treturn Z13087K1 + 'ging'\n\tif Z13087K1.endswith('p') \\\n\t\t\tand not Z13087K1.endswith('pp') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]p$', Z13087K1):\n\t\treturn Z13087K1 + 'ping'\n\tif Z13087K1.endswith('b') \\\n\t\t\tand not Z13087K1.endswith('bb') \\\n\t\t\tand not re.search(r'[aeiou][aeiou]b$', Z13087K1):\n\t\treturn Z13087K1 + 'bing'\n\treturn Z13087K1 + 'ing'"
}
}
},
},

Revision as of 20:37, 14 February 2024

This page displays in a limited way without JavaScript.