Skip to content

Instantly share code, notes, and snippets.

@hirokiky
Created Feb 23, 2020
Embed
What would you like to do?
import random
data = [
"分け目ぴっしー",
"背筋ぴーん",
"ワイシャツパリ",
"ネクタイギュッ",
"ネクタイピンパチ",
"背広ファッ",
"靴ピッカピカ",
"社長室トントン",
"お辞儀ガックーン",
"顔ニコッ",
]
count = 1
while True:
print(count, "回目")
a = random.choice(data)
b = random.choice(data)
print(a)
print(b)
if a == b:
c = random.choice(data)
d = random.choice(data)
print(c)
print(d)
if c == d:
break
count += 1
print(count, "回目で成功しました")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment