+ 2
How can i solve the every time coming password is too short and you forgot to put @ and . Symbol?
id = input(" Enter your if you want to make - ") pas = input(" enter the password you want to make - ") #vars for verifcation spsymb = ["@" , "."] #verify with if statments if id not in spsymb[0] or spsymb[1]: print("it seems that you forgot to put a @ or a .") else: See here i want to give output when if statment is. Not write okay and not when it is all write okay. print(" You have Been ") if pas >= pas[5]: print("password is too short") Here is the same as in upper case else: print(" Succesfully Logged 👏 ") https://code.sololearn.com/c02YOCtccjrW/?ref=app
18 odpowiedzi
+ 4
I have made changes:
Please confirm, did you want this?
https://code.sololearn.com/cesW0zJDDhKs/?ref=app
+ 6
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 It should print "you have been successfully logged in" if you enter correct email and password
+ 5
Vedant Nandwana I have sent you the meaning of len on your prsnl chat
+ 5
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 I interpreted the question like this:
If the input satisfies both the cases:
Output:
"You have been successfully logged in"
Vedant Nandwana am I right?
+ 4
We have no idea what you're talking about.
Please add all the necessary information so that a stranger can understand what you need.
+ 4
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 if two things are missing then it will show all that are not satisfied.
+ 4
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥
namitjain@gmail.com
Helloworld
+ 2
Great, you deleted your multiple post with the answer... congrats.
+ 2
Thank you my sololearn collegeous
+ 2
#Correction from line 16
if spsymb[0] not in id or spsymb[1] not in id:
print("it seems that you forgot to put a @ or a .")
else:
if len(pas) < 5:
print("password is too short")
else: print("you have been Succesfully Logged 👏 ")
+ 1
Yes yes
+ 1
Sir see the code, my moto is to print the output when it is false but it also making output when it's not needed.😧
0
Now see the description
0
Sir what does this statment do ? Im not getting it ?
If len(a)<5:
0
I'll do it sir
0
Copy the password and email Validation from #StackOverFlow
0
After reading through your code and the questions a few times i still struggle to understand the question, yet the first thing that strikes me is that you should check first for the length of the password because it makes the other checks redundant if the check is not passed.
0
In the last if statement, you should type:
if len(pas) >= 5 :
#your code
:)