Q2: Write a Python function that extract the vowels letter and their repetition(vowelsvowels(cs: str) -> (str, list)) from a sentence.Test Data: st = "The quick fox jumps over the dog"Expected Output:...

Q2: Write a Python function that extract the vowels letter and their repetition(vowelsvowels(cs: str) -> (str, list)) from a sentence.Test Data: st = "The quick fox jumps over the dog"Expected Output: 'euio', [2, 2, 1, 2]Test Data: st = "He l lo"Expected Output: 'eo', [1, 1]Q4Write a function that takes as input st1:str and ch character and returns therightmost position of ch in st1. If ch not in st1 then return -1. Do not use thebuilt-in find method.Test Data: st1 = 'abcbcde', ch = 'c'Expected Output: 3Test Data: st1 = 'abcd34561abcd', ch = 'a'Expected Output: 4
Jul 05, 2021
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here