Loop to find out the differences between consecutive elements and storing them in the set
for i in range ( 1 , len ( s ) ) : NEW_LINE INDENT difference . add ( ord ( s [ i ] ) - ord ( s [ i - 1 ] ) ) NEW_LINE DEDENT