0
How do you generate random characters in python?not just letters and integers..but also punctuations. (@#&_$-,.': etc.)
I wanted to generate a series of random characters to a specified range... however i could only generate random integers (random.randint) and random letters.. but how about punctuations? any help would greatly be appreciated 👍🏼
1 ответ
+ 2
you can create a list of those symbols and use the random.choice function from the random module to generate a random symbol. 😊