How can i solve the every time coming password is too short and you forgot to put @ and . Symbol? | Sololearn: Learn to code for FREE!
Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis
+ 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
18 Respostas
+ 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
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