Rate this code | Sololearn: Learn to code for FREE!
5 ответов
+ 5
I will try to be not terribly cruel. Pro: your code runs and delivers on its promise, it creates a password from numbers. Con: you have a lot to improve on your coding style. First rule: avoid code repetition. We often refer to this as "DRY principle" (don't repeat yourself). Use loops and functions so that you don't need to write the same lines of code twice.
7th Jan 2023, 3:39 PM
Tibor Santa
Tibor Santa - avatar
+ 2
It is great if you can find practical problems that you can solve with code. Keep learning and you'll see how you can make your code safer, simpler, and easier to maintain. Not bad for a beginner code ;) Happy Sololearing!
7th Jan 2023, 3:47 PM
Tibor Santa
Tibor Santa - avatar
0
I'm starter and I write this code to rate how I understand lessons. And about numbers this password generator uses it because, I think that it can help you if you often forgot any password and you don't want to say it anybody you can write code on paper and then generate your code again
7th Jan 2023, 3:45 PM
Misterio
Misterio - avatar
0
Thanks. P.s. I calculate and got that a chance to hack a code composits from 8 letters is 4,78865133E-10
7th Jan 2023, 3:49 PM
Misterio
Misterio - avatar
0
It's not for all passwords but if their generated from not repeating letters it must be 4,78865133E-10(it's a chance to find password from random writings 8 letters)
7th Jan 2023, 3:51 PM
Misterio
Misterio - avatar