Im trying to make a simple program to verify password and return the 'true' if passwords is correct. How can i.. ? Using python | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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

22nd Aug 2022, 2:57 PM
Farzan Sk
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
22nd Aug 2022, 3:25 PM
Suparna Das
Suparna Das - avatar
+ 4
Farzan Sk It's my pleasure to help you šŸ˜Š
22nd Aug 2022, 3:35 PM
Suparna Das
Suparna Das - avatar
0
Thanq so much suparna It worksšŸ”„
22nd Aug 2022, 3:35 PM
Farzan Sk