Skip to content
This repository was archived by the owner on May 25, 2022. It is now read-only.

Recursive password generator And Tic Tac Toe - #180

Merged
AdityaJ7 merged 8 commits into
Python-World:masterfrom
erfansaberi:patch-1
Sep 7, 2020
Merged

AdityaJ7 merged 8 commits into
Python-World:masterfrom
erfansaberi:patch-1

Conversation

@erfansaberi

Copy link
Copy Markdown
Contributor

Take a look at this, it's a recursive random password generator, and also simple.

@chavarera chavarera left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@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'

@erfansaberi

Copy link
Copy Markdown
Contributor Author

Good idea 👌

@chavarera chavarera left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erfansaberi

[?] Enter a length for your password: 20
("'", 'AD??y1T2hz227A#xdjdP', "'\n")

remove the other stuffs put only password

@AdityaJ7
AdityaJ7 self-requested a review September 6, 2020 10:25

@AdityaJ7 AdityaJ7 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

@erfansaberi

Copy link
Copy Markdown
Contributor Author

@AdityaJ7 you're right, i added your suggested features.

@erfansaberi erfansaberi changed the title Recursive password generator Recursive password generator And Tic Tac Toe Sep 6, 2020
@erfansaberi

Copy link
Copy Markdown
Contributor Author

I have added tic tac toe (it was appended to this pull request automaticaly)

@AdityaJ7

AdityaJ7 commented Sep 6, 2020

Copy link
Copy Markdown
Member

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 chavarera left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@erfansaberi

you can use builtin function of string to create

 chars = 'abcdefghijklmnopqrstuvwxyz1234567890ABCDEFGHIJKLMNOPQRSTUVWXYZ!@#$%^&*?'

better way to define same thing using string.printable

import string
chars = string.printable

this will give you extra special character which can be useful for creating password

@erfansaberi

Copy link
Copy Markdown
Contributor Author

@chavarera Yes, it cleans the code.

@erfansaberi

Copy link
Copy Markdown
Contributor Author

@AdityaJ7 I have changed the exit point, take a look at it.

@AdityaJ7

AdityaJ7 commented Sep 6, 2020

Copy link
Copy Markdown
Member

@AdityaJ7 I have changed the exit point, take a look at it.

Yes, it works fine now. Good work

@AdityaJ7
AdityaJ7 merged commit a2302ba into Python-World:master Sep 7, 2020
@tusharnankani tusharnankani mentioned this pull request Sep 7, 2020
8 of 10 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants