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:30
Write code using c . (take input from user) calculate the size of a given file in kbs. in this task you will complete the function with the following prototype: float get_file_size(char * filename); the function takes the file name (address to the start of a null terminated character array) as input. the function should then open the file and find the number of bytes it contains till eof. the number of bytes divided by 1024 will give the size in kbs. if the file cannot be opened the function should return -1.
Answers: 2
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, 23.06.2019 10:00
Install and use wireshark program ( send back screen shots and other vital information) case project 3-2: decode a tcp segment in a wireshark capture in this chapter, you walked through tcp segment to interpret the data included in its header. in this project, you use wireshark to capture your own http messafes, examine the tcp headers, and practice interpreting the data you'll find there. 1. open wireshark and snap the window to one side of your screen. open a browser and snap that window to the other side of your screen so you can see both windows.
Answers: 2
question
Computers and Technology, 24.06.2019 15:30
What type of forensic evidence was recovered during the bomb set off at the new mexico facility on the video that was similar to the evidence obtained at the boston bombings and how did the evidence allow the researchers to connect other pieces of evidence to the same bomb?
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, 05.04.2021 22:30
question
Spanish, 05.04.2021 22:30
Questions on the website: 13722367