subject

Replace_contraction (text) [15pts] Description: Creates a new string where the contractions I'm and you're have been replaced with the respective full form, I am and you are. The function is case sensitive, i. e. it will ignore any variations in case. Be reminded that you are not allowed to use any string method. Parameters: text is a string of variable size Return value: the new string that is generated from the replacements Examples: replace_contraction("hello") replace_contraction("hello, I'm Jack") replace_contraction("I M and you're...") + I'M → → "hello" "hello, I am Jack" "I'M and you are..." . You are not allowed to import anything You are not allowed to use slicing You are not allowed to use sets and dictionaries
You are not allowed to use anything that hasn't been covered in clas No built-in function except range() and len() is allowed
You are not allowed to use any string method From list methods, you are allowed to use only .append().
Please whether you can use .sort(), sorted(), .index(), .count() etc
You are not allowed to use the del operator You are not allowed to use the in operator anywhere outside t statement

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:40
Write c function that can replace all the positive elements to 0 and negative to 1 in undefined length one-dimensional array. test your program in the main program by defining one-dimensional array of 6 elements
Answers: 1
question
Computers and Technology, 23.06.2019 07:00
Why is investing in a mutual fund less risky than investing in a particular company's stock? a. mutual funds only invest in blue-chip stocks. b. investments in mutual funds are more liquid. c. mutual funds hold a diversified portfolio of stocks. d. investments in mutual funds offer a higher rate of return.
Answers: 2
question
Computers and Technology, 23.06.2019 13:30
Select the correct answer from each drop-down menu. which types of computer networks are bigger as well as smaller than a man? a man is a network of computers that covers an area bigger than a , but smaller than a .
Answers: 1
question
Computers and Technology, 23.06.2019 18:30
Report all segments of identity by descent longer than 20 polymorphisms between pairs of individuals in the following cohort of 15 individuals across 49 polymorphisms: 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 numeric input 2 points possible (graded) you have 2 attempts to complete the assignment below. for example if the sequence is "bcd", which occurs in "abcdef" , the starting point would be 2 (b), and the finishing point would be 4(d). individuals 7,10 between positions
Answers: 1
You know the right answer?
Replace_contraction (text) [15pts] Description: Creates a new string where the contractions I'm and...
Questions
Questions on the website: 13722360