-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcode.py
177 lines (166 loc) · 4.28 KB
/
code.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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
# This is to Decode or Encode
# To run this code Hit RUN
# Put in your seed of choice(numbers only)
# Then Choose 1, 2 or 3
# If you do 1 that will encode
# if you choose 2 it will decode your pre-encoded letter
# if you choose 3 it will quit the program
# Made by Sammyjam1
# Hope you enjoy!
#
#
#
#
#
#
def words():
print(
'This is to Decode or Encode\nTo run this code Hit RUN\nPut in your seed of choice(numbers only)')
print('Then Choose 1, 2 or 3\nIf you do 1 that will encode')
print('if you choose 2 it will decode your pre-encoded letter\nif you choose 3 it will quit the program\n'
'At any time you can type qt to quit\n')
print('Made by Sammyjam1\nHope you enjoy!\n')
words()
jr = input("Seed - ")
if jr == 'qt':
quit()
elif jr != 'qt':
jr = int(jr)
def stop():
def coder():
ler = input('Enter letter(lowercase only)(rs to restart or qt to quit): ')
if ler == 'q':
print(jr * 11)
if ler == 'w':
print(jr * 12)
if ler == 'e':
print(jr * 13)
if ler == 'r':
print(jr * 14)
if ler == 't':
print(jr * 15)
if ler == 'y':
print(jr * 16)
if ler == 'u':
print(jr * 17)
if ler == 'i':
print(jr * 18)
if ler == 'o':
print(jr * 19)
if ler == 'p':
print(jr * 20)
if ler == 'a':
print(jr * 21)
if ler == 's':
print(jr * 22)
if ler == 'd':
print(jr * 23)
if ler == 'f':
print(jr * 24)
if ler == 'g':
print(jr * 25)
if ler == 'h':
print(jr * 26)
if ler == 'j':
print(jr * 27)
if ler == 'k':
print(jr * 28)
if ler == 'l':
print(jr * 29)
if ler == 'z':
print(jr * 30)
if ler == 'x':
print(jr * 31)
if ler == 'c':
print(jr * 32)
if ler == 'v':
print(jr * 33)
if ler == 'b':
print(jr * 34)
if ler == 'n':
print(jr * 35)
if ler == 'm':
print(jr * 36)
if ler == 'rs':
stop()
if ler == 'qt':
quit()
while True:
coder()
def decoder():
ler = input('Encoded numbers (qt to quit or rs to restart): ')
if ler == str(jr * 11):
print('q')
if ler == str(jr * 12):
print('w')
if ler == str(jr * 13):
print('e')
if ler == str(jr * 14):
print('r')
if ler == str(jr * 15):
print('t')
if ler == str(jr * 16):
print('y')
if ler == str(jr * 17):
print('u')
if ler == str(jr * 18):
print('i')
if ler == str(jr * 19):
print('o')
if ler == str(jr * 20):
print('p')
if ler == str(jr * 21):
print('a')
if ler == str(jr * 22):
print('s')
if ler == str(jr * 23):
print('d')
if ler == str(jr * 24):
print('f')
if ler == str(jr * 25):
print('g')
if ler == str(jr * 26):
print('h')
if ler == str(jr * 27):
print('j')
if ler == str(jr * 28):
print('k')
if ler == str(jr * 29):
print('l')
if ler == str(jr * 30):
print('z')
if ler == str(jr * 31):
print('x')
if ler == str(jr * 32):
print('c')
if ler == str(jr * 33):
print('v')
if ler == str(jr * 34):
print('b')
if ler == str(jr * 35):
print('n')
if ler == str(jr * 36):
print('m')
if ler == 'rs':
stop()
if ler == 'qt':
quit()
while True:
decoder()
which = input('Encode or Decode or Quit?(1, 2, 3)- ')
if which == '1':
coder()
elif which == '2':
decoder()
elif which == '3':
quit()
elif which != '1':
print('U no listen')
stop()
elif which != '2':
print('U no listen')
stop()
elif which != '3':
print('U no listen')
stop()
stop()