0

How to make a simple login form in python 3 ?

There's no rule for username. Password is valid if : -consist of 12 character (alphabet) -password must have upper case and lower case https://code.sololearn.com/cKGse4rOaedh/?ref=app https://code.sololearn.com/cKGse4rOaedh/?ref=app

1st Oct 2020, 6:56 AM
Adira
Adira - avatar
6 Antworten
+ 1
Mind posting your attempt? EDIT: Thanks Adira Ramadhani i would try having each check seperate. have lencheck(), uppercheck(), and lowercheck(), functions, then encapsulate them in a passwordcheck() function
1st Oct 2020, 6:59 AM
Slick
Slick - avatar
+ 1
Slick Thank you very much, I'll try😁
1st Oct 2020, 8:13 AM
Adira
Adira - avatar
0
Slick wait..I'll try.. This is my first class...and my teacher ask us to make it.. It makes me burn out...if you don't mind can you show it?
1st Oct 2020, 7:16 AM
Adira
Adira - avatar
0
if i show it, you learn nothing. so i do mind. in your original code, you make it a bit harder for yourself putting all that in one statement. Make it easy on yourself and create 3 functions that do 1 thing. THEN create one more function that has the 3 previously created functions in it.
1st Oct 2020, 7:19 AM
Slick
Slick - avatar
0
So I should make a function?Slick
1st Oct 2020, 7:23 AM
Adira
Adira - avatar
0
here's an example program. look at how the first 2 functions are used in the 3rd https://code.sololearn.com/cVYhAj1BTbbf/?ref=app
1st Oct 2020, 7:26 AM
Slick
Slick - avatar