> *When using random.sample to make a password, It comes out something like this ``` ['1', '2', '3'] ``` How do I make it output something
> like this ``` 123 ``` So that I can use it to generate strings of
> passwords that includes letters numbers and symbols. Edit: I should
> probably specify that the output isnt just numbers, Its
> letters+symbols aswell*
Alright, so It has now been solved, but now i have a new issue: It comes up with this
File "/usr/lib/python3.8/random.py", line 363, in sample
raise ValueError("Sample larger than population or is negative")
ValueError: Sample larger than population or is negative
Aucun commentaire:
Enregistrer un commentaire