I have a list
List = ['PK', 'K', '1', '2', '3', '4', '5', '6', '7', '8', '9', '10', '11', '12']
I have another list that has,
Grade = ['K','4','8']
I would like to see elements previous to 'K' and next to '8' from List and add it to Grade.
Expected result :
Grade = ['K','4','8','PK','9']
PKat the beginning in the resulting list? Any reason? And can you detail what 'next' mean? You mean the following element?Gradelist? Or can it go at the end?