Created
November 18, 2018 22:00
-
-
Save koji/ed88c8c8dc5425cee7944c48feade0b4 to your computer and use it in GitHub Desktop.
Display Hiraganas randomly
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# coding: utf-8 | |
import random | |
hiragana = "" | |
for i in range(5): | |
k = random.randint(ord('あ'),ord('ん')) | |
hiragana = hiragana + chr(k) | |
print(hiragana) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment