Skip to content

Commit 9c0ae0e

Browse files
author
Sannidhya Dasgupta
authored
Add files via upload
1 parent b623965 commit 9c0ae0e

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

corotines_proj.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import time as t
2+
3+
4+
def NameSearcher():
5+
names = ["Sannidhya", "Akash", "Rohan", "Haris", "Nikhil", "Abdul",
6+
"Vivek", "Rony", "Albert", "Newton", "Bill", "Shalini", "SkillF"]
7+
t.sleep(4)
8+
while True:
9+
text = (yield)
10+
if text in names:
11+
print("Your name is in the list")
12+
else:
13+
print("The name is not in the list.")
14+
15+
16+
search = NameSearcher()
17+
next(search)
18+
search.send(input("Enter the name to search"))
19+
print("Thank You for using our system. Do visit again :)")
20+
search.close()

0 commit comments

Comments
 (0)