complete the code in python
Hello,
Complete the code in python and please zip the file and send it to me as(.ZIP) file
Please make sure that the file you will send contains only one file which is (.py) file
Complete the following code so that a match is found when a string begins with a word:
import re
def text_match(text):
# patterns = ???
if re.search(patterns, text):
return ‘Found a match!’
else:
return(‘Not matched!’)
print(text_match(“The quick brown fox jumps over the lazy dog.”))
print(text_match(” The quick brown fox jumps over the lazy dog.”))
Exercise 2 : Complete the following code so to remove leading zeros from an IP address.
import re
ip = “216.08.094.196”
#string = ???
print(string)
"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.
Discount Code: CIPD30
Click ORDER NOW..


