In Python, you can print both the Russian and English alphabets using their lowercase symbols. Here's an example:
main.py188 chars10 lines
This code uses the chr()
function to convert the Unicode code point to a character and then prints the characters using a loop. The range of unicode code points for the Russian alphabet is from 1072 to 1103, and for the English alphabet is from 97 to 122.
Note that the print statement uses the end
parameter with a space character ' '
to separate the characters with a space instead of a newline.
Output:
main.py118 chars3 lines
You can modify the code if you want to print uppercase characters or specific subsets of the alphabets.
gistlibby LogSnag