mercredi 15 janvier 2020

How to print One random character from email id where special characters like @ and . are excluded?

I tried using random library in python for printing one random character from email id but I don't want any special characters to be printed. How will I do that?

import random
Email_id = 'rajat123@gmail.com' 
f = random.choice(Email_id [0])
print(f)



Aucun commentaire:

Enregistrer un commentaire