5 edited body

Python 2, 145140133103 102 Bytes

A not-so-sleek anonymous function using list comprehension. I feel like the logic should be much shorter, I'll try and figure something out.

lambda k:''.join([c,map(chr,range(48+17*(c>'@')+49*+32*(c>''),ord(c)+1))[2::5]][c.isalnum()]for c in k)


Should be given a name to be used, i.e. f=...

Python 2, 145140133103 102 Bytes

A not-so-sleek anonymous function using list comprehension. I feel like the logic should be much shorter, I'll try and figure something out.

lambda k:''.join([c,map(chr,range(48+17*(c>'@')+49*(c>''),ord(c)+1))[2::5]][c.isalnum()]for c in k)


Should be given a name to be used, i.e. f=...

Python 2, 145140133103 102 Bytes

A not-so-sleek anonymous function using list comprehension. I feel like the logic should be much shorter, I'll try and figure something out.

lambda k:''.join([c,map(chr,range(48+17*(c>'@')+32*(c>''),ord(c)+1))[2::5]][c.isalnum()]for c in k)


Should be given a name to be used, i.e. f=...

4 deleted 45 characters in body

Python 2, 145140133133103 102 Bytes

A not-so-sleek one-lineranonymous function using list comprehension. I feel like the logic should be much shorter, I'll try and figure something out.

print''.join([[c,range(ord(c)-47)[1:lambda k:3]][c''.isdigitjoin()][c,map(chr,range(32*48+17*(c>'@')+49*(c>'')+65,ord(c)+1))[2::5]][c.isalphaisalnum()]for c in input()k)


Input shouldShould be surrounded by quotes.

Edit: Whoever downvoted, caregiven a name to explain?be used, i.e. f=...

Python 2, 145140133 Bytes

A not-so-sleek one-liner using list comprehension. I feel like the logic should be much shorter, I'll try and figure something out.

print''.join([[c,range(ord(c)-47)[1::3]][c.isdigit()],map(chr,range(32*(c>'')+65,ord(c)+1))[2::5]][c.isalpha()]for c in input())


Input should be surrounded by quotes.

Edit: Whoever downvoted, care to explain?

Python 2, 145140133103 102 Bytes

A not-so-sleek anonymous function using list comprehension. I feel like the logic should be much shorter, I'll try and figure something out.

lambda k:''.join([c,map(chr,range(48+17*(c>'@')+49*(c>''),ord(c)+1))[2::5]][c.isalnum()]for c in k)


Should be given a name to be used, i.e. f=...

3 added 47 characters in body

Python 2, 145140 133 Bytes

A not-so-sleek one-liner using list comprehension. I feel like the logic should be much shorter, I'll try and figure something out.

print''.join([[c,range(ord(c)-47)[1::3]][c.isdigit()],map(chr,range(32*(c>'')+65,ord(c)+1))[2::5]][c.isalpha()]for c in input())


Input should be surrounded by quotes.

Edit: Whoever downvoted, care to explain?

Python 2, 145140 133 Bytes

A not-so-sleek one-liner using list comprehension. I feel like the logic should be much shorter, I'll try and figure something out.

print''.join([[c,range(ord(c)-47)[1::3]][c.isdigit()],map(chr,range(32*(c>'')+65,ord(c)+1))[2::5]][c.isalpha()]for c in input())


Input should be surrounded by quotes.

Python 2, 145140 133 Bytes

A not-so-sleek one-liner using list comprehension. I feel like the logic should be much shorter, I'll try and figure something out.

print''.join([[c,range(ord(c)-47)[1::3]][c.isdigit()],map(chr,range(32*(c>'')+65,ord(c)+1))[2::5]][c.isalpha()]for c in input())
`

Input should be surrounded by quotes.

Edit: Whoever downvoted, care to explain?

2 added 6 characters in body
1