candytale55 / make_spoonerism_Py_3

function make_spoonerism() takes two strings as parameters named _word1_ and _word2_. Spoonerism switch the first letters of each word and returns the two new words as a single string separated by a space.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

make_spoonerism_Py_3

function make_spoonerism() takes two strings as parameters named word1 and word2. Spoonerism switch the first letters of each word and returns the two new words as a single string separated by a space.

Description

A Spoonerism is an error in speech when the first syllables of two words are switched. For example, a Spoonerism is made when someone says “Belly Jeans” instead of “Jelly Beans”.

To-Do

  • Finding the first syllable of a word is difficult, so the function right now only switches the first letters of each word. Try doing it with whole syllables.

Technologies

  • Python 3

About

function make_spoonerism() takes two strings as parameters named _word1_ and _word2_. Spoonerism switch the first letters of each word and returns the two new words as a single string separated by a space.


Languages

Language:Python 100.0%