Menu

[solved]-Task 4 Len Find Count Len Workingstring Find Find Start Find Start End Count Count Start C Q39067162

Python

Task 4 len(), .find(), .count() - len(working_string) - .find(i) - .find(i, start) - .find(i, start, end) - .count(i)

Task 4 len(), .find(), .count() – len(working_string) – .find(“i”) – .find(“i”, start) – .find(“i”, start, end) – .count(“i”) – .count(“i”, start) – .count(“i”, start, end) In [ ]: * [ ] search for “code” in code_tip using .find() # [] search substring with substring index start= 13, end = last char # save result in variable: code_index # [] display index of where “code” is found, or print “not found” if code_index == -7 work_tip = “Good code is commented code” Show transcribed image text Task 4 len(), .find(), .count() – len(working_string) – .find(“i”) – .find(“i”, start) – .find(“i”, start, end) – .count(“i”) – .count(“i”, start) – .count(“i”, start, end) In [ ]: * [ ] search for “code” in code_tip using .find() # [] search substring with substring index start= 13, end = last char # save result in variable: code_index # [] display index of where “code” is found, or print “not found” if code_index == -7 work_tip = “Good code is commented code”

Expert Answer


Answer to Task 4 len(), .find(), .count() – len(working_string) – .find(“i”) – .find(“i”, start) – .find(“i”, start, end) – .count… . . .

OR


Leave a Reply

Your email address will not be published. Required fields are marked *