LoginSignup
0
0

川柳の作り方【Python】

Last updated at Posted at 2024-01-07
make_meiku.py
import random

def kana():
   return chr(random.randint(ord(''),ord('')))

text = ""
for i in range(5):
      text += kana()
text += " "
for i in range(7):
      text += kana()
text += " "
for i in range(5):
      text += kana()

print(text)

わぞぃへお ほぜはぱちえで うょむめが

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0