Created
February 23, 2020 14:36
-
-
Save hirokiky/6e3844551b9f185bad640c83440eef5e to your computer and use it in GitHub Desktop.
See this video https://www.youtube.com/watch?v=KPe5yUQEM6o
This file contains 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
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