Generate List of Letters in the Alphabet


/ Published in: Python
Save to your folder(s)



Copy this code and paste it in your HTML
  1. map(chr, range(97, 123))
  2. # ['a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z']
  3.  
  4. map(chr, range(65, 91))
  5. # ['A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z']

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.