+ 1
Im trying to make a simple program to verify password and return the 'true' if passwords is correct. How can i.. ? Using python
a = input (" enter user ID ") b = input (" enter password ") c = 12345 c = bool(c) Result = a and b "'# and is comparison oprtr if both(b and c are same then it will return true else false...''' print (result) If we entered 12345 password as in 'variable c' Result should be true After this code
3 Respostas
+ 4
a = input("Enter user ID\n")
b = int(input("Enter password\n"))
c = 12345
print(a , bool(b==c))
hey! your question seems that you want to output the user ID and the boolean password of user with the pre defined value
You can directly show the
User ID
and boolean value whether the password is matching the pre defined value (c) or not
in just few lines
+ 4
Farzan Sk It's my pleasure to help you 😊
0
Thanq so much suparna
It works🔥