with open('textfile1.txt', 'r') as f:
if sign_in and password in f.read():
print("welcome")
else:
print("not working")
Asked
Active
Viewed 24 times
0

snakecharmerb
- 47,570
- 11
- 100
- 153
-
Your `if` statement is parsed as if it were `if sign_in and (password in f.read()):` Does that explain the problem>? – Barmar Jun 07 '22 at 00:38
-
appreciate it Barmar :) – Mohammed Almassry Jun 07 '22 at 15:38