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, 22.06.2019 14:00
What are procedures that keep a data base current
Answers: 1
question
Computers and Technology, 22.06.2019 21:00
So im doing this school challenge and the teachers said whats the average text a student gets a day so i need to get about 20 in a day but dont know how can you guys 2163371293
Answers: 2
question
Computers and Technology, 23.06.2019 18:00
What can a word user do with the customize ribbon dialog box? check all that apply. minimize the ribbon add a new tab to the ribbon remove a group from a tab add a group to a tab choose which styles appear choose which fonts appear choose tools to appear in a group
Answers: 1
question
Computers and Technology, 23.06.2019 20:50
3.11.3 quiz: comparing and analyzing function typesquestion 4 of 102 pointswhat can you say about the y-values of the two functions f(x) = 3x2-3 andg(x)=2* - 3?
Answers: 2
You know the right answer?
Replace_contraction (text) [15pts] Description: Creates a new string where the contractions I'm and...
Questions
question
Mathematics, 10.03.2021 01:00
question
English, 10.03.2021 01:00
question
Biology, 10.03.2021 01:00
question
Mathematics, 10.03.2021 01:00
question
Mathematics, 10.03.2021 01:00