indexoutofrangeexception

Index out of range when printing adjacent letter

Index out of range when printing adjacent letter Question: I have string which is as follows below stg = ‘AVBFGHJ’ I want the adjacent letter to be printed as expected below AV VB BF FG GH HJ J None I tried below code but throws me error like Index out of Range My code : …

Total answers: 2

list index out of range in __init__()

list index out of range in __init__() Question: I am not able to get that what’s wrong with the below code it should show me the output as 0 : [1, 4] 1 : [0, 2, 4, 3] 2 : [1, 3] 3 : [2, 4, 1] 4 : [3, 0, 1] But it showing …

Total answers: 1