def solution(src: str)-> str:
# your code here
return "".join(chr(ord(e)+i) for i, e in enumerate(src))
assert solution("AAAA") == "ABCD"
assert solution("PASSWORD") == "PBUV[TXK"
assert solution("0123456789") == "02468:<>@B"
def solution(src: str) -> str:
# your code here
ls = "".join([chr(ord(src[i]) + i) for i in range(len(src))])
return ls
if __name__ == '__main__':
assert solution("AAAA") == "ABCD"
assert solution("PASSWORD") == "PBUV[TXK"
assert solution("0123456789") == "02468:<>@B"
def solution(src: str)-> str:
res_list=[i+ord(src[i]) for i in range(len(src))]
return ''.join([chr(res_list[i]) for i in range(len(res_list))])
assert solution("AAAA") == "ABCD"
assert solution("PASSWORD") == "PBUV[TXK"
assert solution("0123456789") == "02468:<>@B"