0
Hi,I am trying to solve the sololearn project,it doesn't seem to recognize I've solved one test case when I move to the nextđ
Help on sololearn project for a beginner.
11 Respostas
+ 4
Which project are you doing? What is the project? Do you have a code?
+ 3
Why do you declare the variable "txt"?
Isn't that meant to be an input so the program can test 'all' possible passwords?
+ 2
Please show your attempt and task description from the project. What programming language you want to use is also important information for getting a help.
+ 2
Osho Paul Besides the other hints, there's an issue in the 2nd regex: the commas. If in doubt, pls review character classes in regular expressions.
BTW, regexes seem overkill to this challenge, but let's get it solved first.
+ 1
You have to receive a password with input statement and test this.
+ 1
Joanna Atenaga
Please search the forum for answers first and don't write something off topic in another thread.
Here's an answer from earlier:
"Make sure you've completed all the rest of the lesson. You can check this by going to the "main tree" of whichever language you're learning and then starting at the beginning and scrolling through each screen until you can't, except if you hit the continue button down the bottom or answer one of the unit questions.
If that doesn't work, send an email with screenshots to info@sololearn.com"
+ 1
Thanks
0
The password security one
0
import re
txt = ("ohp89#quot;)
x = re.findall("[0-9]",txt)
y = re.findall("[+,#,$,*,@,/,?,!,:,;,_,-,(,),\,~,â,âą,Âź,©,%,},{,=,°,^,„,âŹ,Âą,ÂŁ,â,¶,Ă,Ï,â,|,~,]",txt)
if len(txt) == 7:
if y and x:
if len(y) == 2 and len(x) == 2:
print("strong")
else:
print ("weak")
else:
print("you need some numbers and characters")
else:
print ("password needs 7 characters")
0
My code but the problem isn't solving it's that it's not recognizing my solutions after I submit them and want to move on to the next test case
0
How do I move to the next case when done with the previous one please?