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😭 | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
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.

18th Jul 2022, 6:17 AM
Osho Paul
Osho Paul - avatar
11 Answers
+ 4
Which project are you doing? What is the project? Do you have a code?
18th Jul 2022, 6:44 AM
Ausgrindtube
Ausgrindtube - avatar
+ 3
Why do you declare the variable "txt"? Isn't that meant to be an input so the program can test 'all' possible passwords?
18th Jul 2022, 8:20 AM
Ausgrindtube
Ausgrindtube - avatar
+ 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.
18th Jul 2022, 6:50 AM
JaScript
JaScript - avatar
+ 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.
19th Jul 2022, 4:13 AM
Emerson Prado
Emerson Prado - avatar
+ 1
You have to receive a password with input statement and test this.
18th Jul 2022, 7:16 AM
JaScript
JaScript - avatar
+ 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"
3rd Oct 2022, 7:40 AM
Ausgrindtube
Ausgrindtube - avatar
+ 1
Thanks
3rd Oct 2022, 11:57 PM
Joanna Atenaga
0
The password security one
18th Jul 2022, 7:08 AM
Osho Paul
Osho Paul - avatar
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")
18th Jul 2022, 7:08 AM
Osho Paul
Osho Paul - avatar
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
18th Jul 2022, 7:09 AM
Osho Paul
Osho Paul - avatar
0
How do I move to the next case when done with the previous one please?
3rd Oct 2022, 6:44 AM
Joanna Atenaga