Hi.....I have a long string of letters and symbols and I need to increment their ascii value by 1. How can I do that? Here's an example of the string:

s="p@ugdyhtapbcedoamguh?a#vdaxdv$zdoxw?pu$exrbzt
evk#n$xjlgpmece??$$@@yyiw##rmn$nmrblruv
?azxdsoh#$@nndkkt?k@ihatywtbazgbq#ykshx"

so like # becomes $, etc

''.join(chr(ord(c)+1) for c in s)

Ah....thank you!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.