+ 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

18th Jun 2020, 11:50 AM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
24 Respuestas
+ 4
I have made changes: Please confirm, did you want this? https://code.sololearn.com/cesW0zJDDhKs/?ref=app
18th Jun 2020, 11:59 AM
Namit Jain
Namit Jain - avatar
+ 6
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 It should print "you have been successfully logged in" if you enter correct email and password
18th Jun 2020, 12:14 PM
Namit Jain
Namit Jain - avatar
+ 5
Vedant Nandwana I have sent you the meaning of len on your prsnl chat
18th Jun 2020, 12:16 PM
Namit Jain
Namit Jain - avatar
+ 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?
18th Jun 2020, 12:46 PM
Namit Jain
Namit Jain - avatar
+ 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.
18th Jun 2020, 11:57 AM
HonFu
HonFu - avatar
+ 4
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 if two things are missing then it will show all that are not satisfied.
18th Jun 2020, 12:13 PM
Namit Jain
Namit Jain - avatar
+ 4
𝐊𝐢𝐢𝐛𝐨 𝐆𝐡𝐚𝐲𝐚𝐥 namitjain@gmail.com Helloworld
18th Jun 2020, 12:51 PM
Namit Jain
Namit Jain - avatar
+ 2
Great, you deleted your multiple post with the answer... congrats.
18th Jun 2020, 11:59 AM
Sandra Meyer
Sandra Meyer - avatar
+ 2
Thank you my sololearn collegeous
18th Jun 2020, 12:17 PM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
+ 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 👏 ")
20th Jun 2020, 2:11 AM
Bot
Bot - avatar
+ 1
Yes yes
18th Jun 2020, 11:54 AM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
+ 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.😧
18th Jun 2020, 11:56 AM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
0
Now see the description
18th Jun 2020, 12:00 PM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
0
Sir what does this statment do ? Im not getting it ? If len(a)<5:
18th Jun 2020, 12:13 PM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
0
I'll do it sir
18th Jun 2020, 12:15 PM
Vedant Nandwana 📴📵
Vedant Nandwana 📴📵 - avatar
0
Copy the password and email Validation from #StackOverFlow
19th Jun 2020, 3:44 PM
Omar Khalil Bakhsh
Omar Khalil Bakhsh - avatar
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.
19th Jun 2020, 8:27 PM
jack
jack - avatar
0
In the last if statement, you should type: if len(pas) >= 5 : #your code :)
19th Jun 2020, 10:46 PM
Hossam Mokhtar
Hossam Mokhtar - avatar