Advertisement
Guest User

Code

a guest
Oct 21st, 2019
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. from random import random
  2. from random import randrange
  3. from random import randint
  4. letters = "abcdefghijklmnopqrstuvwxyz"
  5. numbers = "0123456789"
  6. rand_letters = []
  7. running = True
  8. num = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
  9. let_2 = randrange(6, 12)
  10. num_2 = randrange(1, 3)
  11. rand_num = []
  12. while running:
  13. print("Select your operator: \n"
  14. "1) Generate your email\n"
  15. "2) Exit")
  16. choice = input()
  17. if choice == "1":
  18. print("Choose your domain:\n"
  19. "1) gmail.com\n"
  20. "2) yahoo.com\n"
  21. "3) yandex.com")
  22. domain_choice = input()
  23. initial = 0
  24. if domain_choice == "1":
  25. domain = "@gmail.com"
  26. while initial != let_2:
  27. let_3 = randint(0, 9)
  28. num_3 = randint(0, 9)
  29. rand_num.append(letters[num_3])
  30. rand_letters.append(letters[let_3])
  31. initial = initial + 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement