Tuesday, May 24, 2022

Python Username and Password using if .. else

input:

 username ="shraddha"

password ="shraddha30"

x=input("enter your user name-")

y=input("enter ypur password-")

if x==username:

  if y==password:

    print("okay done!!")

else:

  print("enter your correct username and password.")

output:


No comments:

Post a Comment