-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
28 lines (24 loc) · 924 Bytes
/
main.py
File metadata and controls
28 lines (24 loc) · 924 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
26
27
28
import random as ran
names=['Ellie', 'Mateo', 'Ezra', 'Ava', 'Mia', 'Elijah', 'Liam', 'Noah', 'Lucas', 'Oliver', 'Leo']
flame="flameflameflameflame"
i=00
while True:
print("\n/////////")
inp1= input("Insert ffirst name: ")
inp2= input("Insert ssecond name: ")
all = set(inp1).union(set(inp2 ))
intersect = set(inp1).intersection(set(inp2 ))
flames = [i.lower() for i in list(all -intersect)]
length =len(flames)
if flame[length]=="f":
print(f"\n{inp1} and {inp2} are friends")
elif flame[length]=="l":
print(f"\n{inp1} and {inp2} are lovers")
elif flame[length]=="a":
print(f"\n{inp1} and {inp2} are affectionate")
elif flame[length]=="m":
print(f"\n{inp1} and {inp2} are marriage")
elif flame[length] == "e":
print(f"\n{inp1} and {inp2} are enemies")
elif flame[length]=="s":
print(f"\n{inp1} and {inp2} are siblings")