-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencrypted code.py
More file actions
55 lines (39 loc) · 1.14 KB
/
encrypted code.py
File metadata and controls
55 lines (39 loc) · 1.14 KB
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
alphabet = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"," ","."]
print(alphabet[0])
user_input = "this is a test."
user_sentance = list(user_input)
print(user_sentance)
#user_sentance = user_input.split()
#print(user_sentance)
counter = 0
#def remove_space():
# return string.replace(" ", "")
#def remove_period():
# user_sentance.replace(".", "")
counter_1 = 0
def counter_2():
counter_2 = 0
def counter_1():
counter_1 = 0
def main():
for i in user_sentance:
counter_1 = 0
counter_2 = 0
for x in alphabet:
if user_sentance[counter_1] == alphabet[counter_2]:
print(counter_2)
counter_2 = 0
main()
else:
main()
counter_2 += 1
counter_1 += 1
#if "." in user.sentance[counter]:
# user_sentance[counter].replace(".","")
# print(user_sentance)
# main()
#else:
# break
x = 0
#while x > 1:
main()