Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a= 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
- n = ''
- res = ''
- key = 1
- enter = input('').strip()
- def add (f):
- if f != '':
- f = int(f)
- f += key
- f = str(f)
- return f
- else:
- return n
- for i in enter:
- if a.count(i) == 0:
- if i.isnumeric():
- n += i
- else:
- n = add(n)
- res += n
- n= ''
- res += i
- else:
- n = add(n)
- res += n
- n = ''
- res += a([(a.index(i)+key)%len(a)])
- n = add(n)
- res += n
- n =''
- print(res)
- res += a([(a.index(i)+key)%len(a)])
- Traceback (most recent call last):
- File "F:/PYCHARM PROGRAm/1/venv/Scripts/1333213213213.py", line 29, in <module>
- res += a([(a.index(i)+key)%len(a)])
- TypeError: 'str' object is not callable
- a= 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
- n = ''
- res = ''
- key = 1
- enter = input('').strip()
- abc11
- def add (f):
- if f != '':
- f = int(f)
- f += key
- f = str(f)
- return f
- else:
- return n
- for i,z in enumerate(enter):
- if a.count(z) == 0:
- if z.isnumeric():
- n += z
- else:
- n = add(n)
- res += n
- n= ''
- res += z
- else:
- n = add(n)
- res += n
- n = ''
- res += a[(a.index(z)+key)%len(a)]
- n = add(n)
- res += n
- n =''
- print(res)
- bcd12
Add Comment
Please, Sign In to add comment