Both of strings from userInput
and fcon
matches, it is still unable to print the "matched" message.
I have tried comparing two strings from input()
it work.
userInput = input("First String")
with open("file1", mode ="r") as nameDb:
fcon = nameDb.readline()
print(type(fcon),fcon)
print(type(userInput), userInput)
if userInput is fcon:
print("Matched")
else:
print("No match")