LoginSignup
37
17

More than 5 years have passed since last update.

Python3でアルファベットのリストを表示する

Posted at

備忘。
競技用プログラミングとかで使えそうなので認めておく。

alphabet_list.py
print([chr(ord('a') + i) for i in range(26)])

#=> ['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']
37
17
2

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
37
17