这是因为您两次运行该函数,一次在if语句中,一次在打印中。将其存储在这样的变量中:
# ...
for i in range(0, 5):
# ...
# ...
bibeon = input("Enter password: ")
chkResult = passwordChk(bibeon)
if chkResult == 'Valid Password':
print(chkResult)
break
else:
print(chkResult)