Navigation X
ALERT
Click here to register with a few steps and explore all our cool stuff we have to offer!



   361

python question

by Blepop - 05 June, 2021 - 07:06 AM
This post is by a banned member (Blepop) - Unhide
Blepop  
Galactic
4.046
Posts
2.154
Threads
6 Years of service
#1
code = ''.join(random.choice(string.ascii_lowercase + string.digits) for k in range(12))

i want to include only a-f   character in lowercase above, i dont want a-z
what to do 

codes are mixed of numbers and lowercase letters but in lowercase too it only has a-f
 
 
This post is by a banned member (Xploiterlol) - Unhide
16
Posts
2
Threads
4 Years of service
#2
Make a list and add the letters you want to the list then do random.choice(listname) <- I think thats how it goes.
This post is by a banned member (LoveYourVoice) - Unhide

Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
or
Sign in
Already have an account? Sign in here.


Forum Jump:


Users browsing this thread: 1 Guest(s)