Question: Python 3.6 language HOMEWORK 03:ITERATION 2 Function name (1 rearrange vowels Parameters string to be iterated through (str) Return value string starting with all of


Python 3.6 language
HOMEWORK 03:ITERATION 2 Function name (1 rearrange vowels Parameters string to be iterated through (str) Return value string starting with all of the vowels of the original string, and ending with all of the consonants of the original string (str) Description Write a function that takes in a string and separates all of the vowels from the consonants, and creates a new string made from the separated portions. The ordering of the vowe and consonants should be the same order that they are present in the string. Capitalization should also be preserved. Any spaces present in the orginal string should be ignored and not added to the final output. You must use a for loop in this function to receive ful credit. Test Cases: >>> rearrange-vowels("hello") -eohl1" >>rearrange vowels("Oklahoma")Oaoak1hm >> rearrange-vowels ("Computer Science")- -oue1eeCmptrScnc" nt The lower( ) string function might help in this function. Also look at Python's "in" operator when dealing with strings. Function name (2): censor Parameters: string to censor (str) Return value censored string (str) You are working at a chldren's television network, and your job is to censor any wards that could potentially be inappropriate. In order to do this, you have to replace certain letters with symbols. You must use a for loop in this function to receive ful credit. The rules for censorship or as follows: 3 "i" or -@" Test Cases >>> censor("What the heck!")- -Whlt tha h#ck" >>> censor("You snell bad")-, "Yo" sm#11 bld" >> censor("I love CS!)lova CSi Authors: Cary Brooks and Tiffany Xu Report ssues: corybrooks@gatech.edu or txtxxuOgmall.com
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
