We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 845a416 commit 87622adCopy full SHA for 87622ad
Liez-python-code/0012/0012.py
@@ -0,0 +1,10 @@
1
+def filtertext(x):
2
+ with open(x, 'r') as f:
3
+ text = f.read()
4
+ userinput = input('myinput:')
5
+ for i in text.split('\n'):
6
+ if i in userinput:
7
+ userinput = userinput.replace(str(i), '*'*len(i))
8
+ print(userinput)
9
+
10
+filtertext('word.txt')
0 commit comments