# Output the alphabet with the shortest code possible [duplicate]

You have to output the alphabet (upper case) with the shortest code possible.

Exact output expected : ABCDEFGHIJKLMNOPQRSTUVWXYZ

# APL, 2 chars

⎕A


It's a constant string with the uppercase letters from A to Z

## Python 35 chars

print("ABCDEFGHIJKLMNOPQRSTUVWXYZ")


BASH 21 chars

echo {A..Z}|tr -d " "


Output:

~$echo {A..Z}|tr -d " " ABCDEFGHIJKLMNOPQRSTUVWXYZ  • For a shorter way see the bash solution posted for this question's duplicate. – manatwork Feb 5 '14 at 12:35 • Sure, but the Output has to be exactly in the form provided. The answer you linked to is in lowercase with spaces. But nevertheless thank you for pointing me there :) – german_guy Feb 5 '14 at 12:39 • Interesting. printf %s {A..Z} gives me uppercase letters without any space. – manatwork Feb 5 '14 at 12:41 • Hmmm, true. Maybe you could then just submit this as an answer – german_guy Feb 5 '14 at 12:43 • Pointless. This question will be probably closed soon as duplicate. I only posted trying to help you get the taste of golfing. – manatwork Feb 5 '14 at 12:49 ## R, 19 cat(LETTERS,sep="")  Output: ABCDEFGHIJKLMNOPQRSTUVWXYZ  Ruby 2.0.0, bytesize: 19: => p([*'A'..'Z'].join) => "ABCDEFGHIJKLMNOPQRSTUVWXYZ"  update. this produce without quotes: => ruby -e '$><<[*?A..?Z].join'
=> ABCDEFGHIJKLMNOPQRSTUVWXYZ

• You can use ?A and ?Z instead of 'A' and 'Z'. And you can use *'' instead of .join. And the parenthesis is not necessary there. Sadly this outputs the alphabet between double quotes. – manatwork Feb 5 '14 at 12:44
• thanx @manatwork I'm surprised *''! – user13426 Feb 5 '14 at 12:57

## Delphi

### 52 bytes

var i:int16;begin for i:=65to 90do write(chr(i))end.


### 45 bytes

begin write('ABCDEFGHIJKLMNOPQRSTUVWXYZ');end.

• You have to post a functional piece of code, including declarations and any other stuff required by the language. – manatwork Feb 5 '14 at 13:01
• Edited it, I thought you just needed the required code to display it... my bad – Teun Pronk Feb 5 '14 at 13:06
• Actually the program X; is not necessary and in this case byte is enough. Not mentioning that the variable declaration in the second version is pointless. – manatwork Feb 5 '14 at 13:19
• sighs could get it shorter anyhow, just had something coming up all of a sudden, I will edit it soon.. – Teun Pronk Feb 5 '14 at 13:30