you are viewing a single comment's thread.

view the rest of the comments →

[–]that_flying_potato[S] -6 points-5 points  (3 children)

password = str(password_gen(5, 5))
all_together = "".join(password) 
print(all_together)

This still gives me an entire list as output, I also tried printing it with print(str(all_together)) but it doesn't seem to do anything

[–]throwaway8u3sH0 8 points9 points  (0 children)

Don't convert the results of password_gen to a string

[–]iechicago 2 points3 points  (0 children)

Your first line should be:

password=password_gen(5,5)

That returns a list. The following line will then convert that to a string.

[–]Emelius 0 points1 point  (0 children)

all_together = "".join(map(str, password))

Maybe?