0

Is my code correct and good enough?

Hey guys this is a mini code for a login system, please tell me how to improve it print("this is a programme for a login page") password = "Anshul21" P1 = input("enter your password") while password == P1: print('wlecome to the home page') if password != P1: print("your paasword is wrong") p2 = input("enter your new password") if password == P1: print("your password is correct") else: print(" your credintail is wrong")

30th May 2022, 3:26 PM
Anshul
2 Answers
+ 1
Anshul Why while loop here? if password == P1 is True while loop will run continuously.
30th May 2022, 3:37 PM
AÍąJ
AÍąJ - avatar
0
Okay
31st May 2022, 4:59 AM
Anshul