Course Solutions Uncategorized (Solved) : Need Python 3 Help Thank Question 2 Function Made Def Change Englishword Assert Isinstance Q34414125 . . . .

(Solved) : Need Python 3 Help Thank Question 2 Function Made Def Change Englishword Assert Isinstance Q34414125 . . . .

 

I need python 3 help.

Thank you

This is question 2 function that i made

def change(english_word):

assert isinstance(english_word, str)
def letter_mover(letter):
“””if it takes vowel letter, it changes to next vowel. If ittakes
consonant, it changes to next third consonant.”””
vowels_double = [‘a’, ‘e’, ‘i’, ‘o’, ‘u’, ‘a’, ‘e’, ‘i’, ‘o’,’u’]
consonant_double = [‘b’, ‘c’, ‘d’, ‘f’, ‘g’, ‘h’, ‘j’, ‘k’, ‘l’,’n’,
‘m’, ‘p’, ‘r’, ‘s’, ‘t’, ‘v’, ‘w’, ‘x’, ‘y’, ‘z’, ‘b’, ‘c’, ‘d’,’f’,
‘g’, ‘h’, ‘j’, ‘k’, ‘l’, ‘n’, ‘m’, ‘p’, ‘r’, ‘s’, ‘t’, ‘v’, ‘w’,’x’,
‘y’, ‘z’]
if letter in vowels_double:
return vowels_double[vowels_double.index(letter)+1]
if letter in consonant_double:
return consonant_double[consonant_double.index(letter)+3]
return letter
english_word = english_word.lower()
return “”.join(map(letter_mover, english_word))

Q5: Mapping a Great Text!

Upon finishing

OR

PayPal Gateway not configured

OR

PayPal Gateway not configured

Leave a Reply

Your email address will not be published. Required fields are marked *

Related Post

(Answered) : Potential Project Proposal Remote Health Disaster Management Potential Project Name Remote Q35264404(Answered) : Potential Project Proposal Remote Health Disaster Management Potential Project Name Remote Q35264404

<p>Potential Project Proposal on Remote health and disastermanagement Potential Project Name: Remote health and disastermanagement Project Sponsor’s Name, Organization, and ContactInformation: Justification or Reason for the Project: Main ProjectDeliverables: Required