Search
 
SCRIPT & CODE EXAMPLE
 

PYTHON

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
Comment

PREVIOUS NEXT
Code Example
Python :: tokens in python 
Python :: run a python file from another python file 
Python :: how to reverse a number 
Python :: launch application from python 
Python :: np.all() 
Python :: python move 
Python :: empty python file 
Python :: how to sort a dictionary in python without sort function 
Python :: numpy shuffle along axis 
Python :: convert date to integer python 
Python :: transpose of a matrix in python using loop 
Python :: Read multiple csv files into separate dataframes Python 
Python :: python update function 
Python :: check how many letters in a string python 
Python :: k fold cross validation 
Python :: if else usage python 
Python :: how to check if a value is nan in python 
Python :: py scrapy 
Python :: get tuple value python 
Python :: create dictionary python having hash value 
Python :: string functions 
Python :: Python How To Convert Text to Speech 
Python :: Python Loop Usage 
Python :: how to replace special characters in a string python 
Python :: miles to km in python 
Python :: how to store object in file python 
Python :: dictionaries in python 
Python :: how to make a calculator in python 
Python :: infinite for loop python 
Python :: django model registration 
ADD CONTENT
Topic
Content
Source link
Name
3+9 =