Menu

[solved]-Task 4 Len Find Count Len Workingstring Find Find Start Find Start End Count Count J Start Q39067179

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(“j”, start) – .count(“i”, start, end) In [ ]: # [] count times letter “;” appears in code_tip string [] find and display the index of all the letter i’s in code_tip # Remember: if.find(“i”) has No Match, -1 is returned code_tip = “code a conditional decision like you would say it” print (“code_tip:” , code_tip) code_tip.count(i) print(code_tip.find(‘i’) Show transcribed image text Task 4 len(), .find(), .count() – len(working_string) – .find(“i”) – .find(“i”, start) – .find(“i”, start, end) – .count(“i”) – .count(“j”, start) – .count(“i”, start, end) In [ ]: # [] count times letter “;” appears in code_tip string [] find and display the index of all the letter i’s in code_tip # Remember: if.find(“i”) has No Match, -1 is returned code_tip = “code a conditional decision like you would say it” print (“code_tip:” , code_tip) code_tip.count(i) print(code_tip.find(‘i’)

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 *