Introduction
How much of the English alphabet does a given string use? The previous sentence uses 77%. It has 20 unique letters (howmucftenglisapbdvr), and 20/26 ≃ 0.77.
Challenge
For an input string, return the percentage of letters of the English alphabet present in the string.
The answer can be in percentage or in decimal form.
The input string can have upper and lower case, as well as punctuation. However you can assume they have no diacritics or accentuated characters.
Test cases
Input
"Did you put your name in the Goblet of Fire, Harry?" he asked calmly.
Some valid outputs
77%, 76.9, 0.7692
Input:
The quick brown fox jumps over the lazy dog
All valid outputs:
100%, 100, 1
The expected output for "@#$%^&*?!"
and ""
is 0.
"@#$%^&*?!"
,""
\$\endgroup\$77%
and76.9
is accepted, is77
accepted too? \$\endgroup\$