-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.py
More file actions
35 lines (30 loc) · 899 Bytes
/
main.py
File metadata and controls
35 lines (30 loc) · 899 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
29
30
31
32
33
34
35
f1 = open("data/persian-boy-name.txt", "r")
f2 = open("data/persian-girl-name.txt" , "r")
f3 = open("data/persian-region-name.txt" , "r")
# f4 = open("file4.txt" , "r")
# f5 = open("file5.txt" , "r")
file1 = f1.read()
file2 = f2.read()
file3 = f3.read()
# file4 = f4.readline()
# file5 = f5.readline()
def search (file1 , file2 ,file3 , text):
for i in file1, file2, file3 :
if text in file1:
print("its Male name")
return
elif text in file2:
print("its Woman name")
return
elif text in file3:
print("its Region name")
return
# elif text in file4:
# print("found in file4")
# return
# elif text in file5:
# print("found in file5")
# return
print("notfound")
text = input('Enter your world:')
search(file1 , file2, file3, text)