+ 7
What is the mistake here?
https://code.sololearn.com/cH7cC4NtwM48/?ref=app Can anyone help me?
7 Answers
+ 3
Condition : if b in a : either true or false in all iteration of the loop. So answer 0 or 100%.
It should be if i in b : is not it?
+ 4
Jayakrishna🇮🇳 thank you...I understood now...
+ 3
Jayakrishna🇮🇳 it looks more compact thank you so much
+ 1
You're welcome..
edit:
instead of loop you can use count function as
len_c = a.count(b) # len_c/len(a) *100
+ 1
The only mistake I see is my mother's decision to have me
0
How to make calculator in java??
0
There is no mistake here. The program is absolutely correct