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 :: update link python is python 3 
Python :: python os get output 
Python :: float number field django models 
Python :: python image to pdf 
Python :: iterate over rows dataframe 
Python :: write object to file python 
Python :: loop through groupby pandas 
Python :: pandas df remove index 
Python :: jupyter notebook how to set max display row columns matrix numpy 
Python :: python program to print list vertically without using loop 
Python :: img read 
Python :: df count missing values 
Python :: how to order randomly in django orm 
Python :: get object attributes python 
Python :: python timeit commandline example 
Python :: keyboard listener python 
Python :: rolling average df 
Python :: python wait 5 seconds then display 
Python :: calculator in one line in python 
Python :: pandas sort columns by name 
Python :: check if regex matches python 
Python :: python suppress exponential notation 
Python :: change column name df 
Python :: python shortest path of list of nodes site:stackoverflow.com 
Python :: how to run pytest and enter console on failure 
Python :: python list contains substring 
Python :: how to remove first few characters from string in python 
Python :: python pandas difference between two data frames 
Python :: how to leave some parameters in python and let the value be anything 
Python :: how to shutdown your computer using python 
ADD CONTENT
Topic
Content
Source link
Name
4+5 =