Skip to content

Instantly share code, notes, and snippets.

@sizumita
Created March 12, 2016 23:51
Show Gist options
  • Save sizumita/0e593a11fe241426a0a7 to your computer and use it in GitHub Desktop.
Save sizumita/0e593a11fe241426a0a7 to your computer and use it in GitHub Desktop.
#coding:utf-8
import random
i = 0
maks = ['ズン','ドコ']
while i != 5:
if random.choice(maks) == 'ズン':
i = i + 1
print 'ズン'
if random.choice(maks) == 'ズン':
i = i + 1
print 'ズン'
if random.choice(maks) == 'ズン':
i = i + 1
print 'ズン'
if random.choice(maks) == 'ズン':
i = i + 1
print 'ズン'
if random.choice(maks) == 'ドコ':
i = i + 1
print 'ドコ'
else:
print 'ズン'
i = 0
else:
print 'ドコ'
i = 0
else:
print 'ドコ'
i = 0
else:
print 'ドコ'
i = 0
else:
print 'ドコ'
i = 0
if i == 5:
print 'キ・ヨ・シ!'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment