Repository navigation
Recursive password generator And Tic Tac Toe - #180
Conversation
chavarera
left a comment
There was a problem hiding this comment.
@erfansaberi code is working fine
can you print password in proper manner
[?] Enter a length for your password: 20
(' [+]', 'i&U1YSXxj0#lg$gjKZmP', '\n')
Suggested Output
[?] Enter a length for your password: 20
'i&U1YSXxj0#lg$gjKZmP'
|
Good idea 👌 |
chavarera
left a comment
There was a problem hiding this comment.
[?] Enter a length for your password: 20
("'", 'AD??y1T2hz227A#xdjdP', "'\n")
remove the other stuffs put only password
AdityaJ7
left a comment
There was a problem hiding this comment.
You can add a condition to check that the user enters only integer values for the length so that it prevents your program from breaking.
The program is currently in an infinite loop so add some option like if the user types exit, the program will end.
Else everything is good
|
@AdityaJ7 you're right, i added your suggested features. |
|
I have added tic tac toe (it was appended to this pull request automaticaly) |
The tic tac toe is working fine but your password generator is still in an infinite loop and the program does not ends on typing e |
chavarera
left a comment
There was a problem hiding this comment.
you can use builtin function of string to create
chars = 'abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*?'better way to define same thing using string.printable
import string
chars = string.printablethis will give you extra special character which can be useful for creating password
|
@chavarera Yes, it cleans the code. |
|
@AdityaJ7 I have changed the exit point, take a look at it. |
Yes, it works fine now. Good work |
Take a look at this, it's a recursive random password generator, and also simple.