Answers for "make own email generator python"

0

python random email generator

Try the following:

import random
import string

def random_char(y):
       return ''.join(random.choice(string.ascii_letters) for x in range(y))

print (random_char(7)+"@gmail.com")
you can use string.ascii_lowercase if you only want lower case letters
Posted by: Guest on March-20-2021

Python Answers by Framework

Browse Popular Code Answers by Language