We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb82440 commit 8005408Copy full SHA for 8005408
1 file changed
Liez-python-code/0011/0011.py
@@ -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