- 追加された行はこの色です。
- 削除された行はこの色です。
[[問題文>練習問題#s98f80e0]]
# -*- coding: utf-8 -*-
from random import *
from random import choice
#s = [ unichr(i) for i in xrange(ord(u'ぁ'), ord(u'ん')+1) ]
s = u'あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをん'
print '\n'.join('%c%c' % (choice(s), choice(s)) for _ in xrange(100))
print '\n'.join(u'{0}{1}'.format(choice(s), choice(s)) for _ in xrange(100))
#choiceを知らなかったとき
#coding:utf-8
import random
a = u"あいうえおかきくけこさしすせそたちつてとなにぬねのはひふへほまみむめもやゆよらりるれろわをん"
m = random.randint(0, len(a) - 1)
n = random.randint(0, len(a) - 1)
print a[m:m + 1] + a[n:n + 1]