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 17:00
Your company has 1,500 desktop computers running windows 7. you want to upgrade them to windows 10. which type of microsoft license would be best suited in this situation?
Answers: 3
question
Computers and Technology, 22.06.2019 18:30
Which of the following commands is more recommended while creating a bot?
Answers: 1
question
Computers and Technology, 22.06.2019 23:30
Jaina and tomas are being considered as new tenants in an apartment. the landlord looks at their creditworthiness because he wants to be sure his new tenant pays the rent on time and in full. the table below summarizes the information that was on their applications. application information questions jaina tomas how many years have you had your job? 5 2 what is your monthly salary? $1,850 $2,500 how many credit cards do you have? 4 1 how much debt do you have? $13,000 $7,000 how many times were you late with payments on credit cards in the past year? 5 1 who will the landlord decide to be more creditworthy and why? tomas because the ratio of his debt to income is less. jaina because she has had her job longer, which makes her look more stable. jaina because she has more credit cards available to her. tomas because he makes more money per month.
Answers: 2
question
Computers and Technology, 24.06.2019 00:10
Read each statement below. if the statement describes a peer-to-peer network, put a p next to it. if the statement describes a server-based network, put an s next to it. p - peer-to-peer s - server-based
Answers: 1
You know the right answer?
Replace_contraction (text) [15pts] Description: Creates a new string where the contractions I'm and...
Questions
question
Biology, 05.10.2019 10:40
Questions on the website: 13722363