fork download
  1. from random import choice
  2.  
  3. minusculas = "abcdefgh"
  4. maiusculas = "ABCDEFGH"
  5. senha = []
  6. pos = 0
  7. while pos < 8:
  8. senha.append(choice(maiusculas))
  9. senha.append(choice(minusculas))
  10. pos += 1
  11. print(''.join(senha))
  12.  
  13. #https://pt.stackoverflow.com/q/461052/101
Success #stdin #stdout 0.02s 11548KB
stdin
Standard input is empty
stdout
CcCfFhGbDcDaBaAh