-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFlames.py
More file actions
25 lines (21 loc) · 712 Bytes
/
Copy pathFlames.py
File metadata and controls
25 lines (21 loc) · 712 Bytes
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
#!/usr/bin/env python3
boy_name = list(input("Type Name of Boy: ").lower())
girl_name = list(input("Type Name of Girl: ").lower())
i = j = index = 0
for i in range(len(boy_name)):
for j in range(len(girl_name)):
if (boy_name[i] == girl_name[j]):
boy_name[i] = girl_name[j] = ""
#break
count = len("".join(boy_name)+"".join(girl_name))
flames = ["F", "L", "A", "M", "E"]
while len(flames) > 1:
for i in range(count):
index += 1
if index > len(flames):
index = 1
flames.remove(flames[index-1])
index -= 1
result = {"F" : "Friends", "L" : "Love", "A" : "Affection",
"M" : "Marriage", "E" : "Enemy"}
print(result[flames[0]])