Skip to content

Commit 8005408

Browse files
committed
Create 0011.py
1 parent bb82440 commit 8005408

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Liez-python-code/0011/0011.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
def filterwords(x):
2+
with open(x, 'r') as f:
3+
text = f.read()
4+
print (text.split('\n'))
5+
userinput = input('myinput:')
6+
for i in text.split('\n'):
7+
if i in userinput:
8+
return True
9+
10+
if filterwords('word.txt'):
11+
print ('freedom')
12+
else:
13+
print ('human rights')

0 commit comments

Comments
 (0)