Print every pair of distinct letters

Created by Julien Palard

Provide a script printing every possible pairs of two different letters.

Only lower case, one pair per line, ordered alphabetically.

Don't print pairs consisting of twice the same letter, such as 'aa', 'bb', etc...

So your output should look like:

$ python3 solution.py
ab
..
az
ba
bc
,,
zy

There's no corrections yet, hit the `Submit` button to send your code to the correction bot.

Keyboard shortcuts:

  • Ctrl-Enter: Send your code to the correction bot.
  • Escape: Get back to the instructions tab.

See solutions