+ 1

What's the error in this code...... Word rank problem

Word rank problem from code coach . Its working fine in code playground but not in code coach https://code.sololearn.com/ctl8T7tEY1XF/?ref=app

15th Jan 2020, 5:11 PM
Deepak Yadav
Deepak Yadav - avatar
12 odpowiedzi
+ 1
only one input is required. why do you have two?
15th Jan 2020, 5:16 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 7
Deepak Yadav currently it's not working fine here too. And one input is enough for solve code coch
15th Jan 2020, 5:45 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 7
Oh okay
15th Jan 2020, 5:55 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 6
Oh okay I'm reviewing your linked code which is deleted right now
15th Jan 2020, 5:52 PM
GAWEN STEASY
GAWEN STEASY - avatar
+ 3
bahha🐧 yes u are right.. I got tthis... Thanks
15th Jan 2020, 5:19 PM
Deepak Yadav
Deepak Yadav - avatar
+ 3
bahha🐧 GAWEN STEASY But my answer is one less than the desired out i dont know why ...for just solving i just added 1 to output... And it worked https://code.sololearn.com/cTiytlPDU62i/?ref=app
15th Jan 2020, 5:49 PM
Deepak Yadav
Deepak Yadav - avatar
+ 2
GAWEN STEASY yea u are right... And i forgot that indexing strat from zero... Thanks for reminding
15th Jan 2020, 6:08 PM
Deepak Yadav
Deepak Yadav - avatar
+ 1
bahha🐧 but the question needs two input
15th Jan 2020, 5:17 PM
Deepak Yadav
Deepak Yadav - avatar
+ 1
Input Format: A string, representing a sequence of letters (A-Z). I solved it with one input()
15th Jan 2020, 5:19 PM
Bahhaⵣ
Bahhaⵣ - avatar
+ 1
But i solved it
15th Jan 2020, 5:47 PM
Deepak Yadav
Deepak Yadav - avatar
+ 1
GAWEN STEASY i just updated it now
15th Jan 2020, 5:52 PM
Deepak Yadav
Deepak Yadav - avatar
+ 1
because list index starts from zero. so you have to adjust for that. I solved it the same way you did 😁
15th Jan 2020, 6:05 PM
Bahhaⵣ
Bahhaⵣ - avatar