Site menu

CodeCook.io

  • Languages
    • C
    • C++
    • CSS
    • Git
    • HTML
    • Java
    • JavaScript
    • jQuery
    • PHP
    • Python
    • Ruby
    • Scala
  • character
  • range

Python - Range of alphabet chacters

Create a list of alphabet characters between start and stop character.

1
569
  • Share on Facebook
  • Share on Google+
  • Share on Twitter

Using python range

Range of integers between the numerical representation of two characters is created and converted back to characters.

map(chr, range(ord({{start}}), ord({{start}})+1))
python

Notes

last update: Oct. 27, 2014

Advertisement

This project is hosted on DigitalOcean, try it and support us

Related concept

  • Create a list of integers
  • Random integer in range

Other language

  • Ruby

Random task

  • Toggle DOM element class
  • Single comment
  • Create git tag
  • Find index of item in array
  • Static share link for social network
  • Blog
  • About
  • License