PY
py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
pp=str(input('Say something, if it stars with & it will be decoded: \n'))
def decode(pp):
ll=pp[1:]
dd=[]
emt=''
decode=''
for i in ll:
if i.isdigit()==True:
emt+=str(i)
elif i.isalpha()==True:
dd.append(emt)
emt=''
dd.append(i)
n=0
while n<len(dd):
decode+=int(dd[n])*dd[n+1]
n+=2
print(decode)
def encode(pp):
upp=0
low=0
y=0
code=''
for i in pp:
Enter to Rename, Shift+Enter to Preview
OUTPUT
Run