There have been multiple accounts created with the sole purpose of posting advertisement posts or replies containing unsolicited advertising.

Accounts which solely post advertisements, or persistently post them may be terminated.

joyjoy ,

You call that russian roulette? This is real russian roulette. Dying is a 1/6 probability.


<span style="font-style:italic;color:#969896;">#!/usr/bin/env python3
</span><span style="font-weight:bold;color:#a71d5d;">import </span><span style="color:#323232;">random
</span><span style="color:#323232;">
</span><span style="color:#323232;">barrel </span><span style="font-weight:bold;color:#a71d5d;">= </span><span style="color:#323232;">[</span><span style="color:#0086b3;">0</span><span style="color:#323232;">, </span><span style="color:#0086b3;">0</span><span style="color:#323232;">, </span><span style="color:#0086b3;">0</span><span style="color:#323232;">, </span><span style="color:#0086b3;">0</span><span style="color:#323232;">, </span><span style="color:#0086b3;">0</span><span style="color:#323232;">, </span><span style="color:#0086b3;">1</span><span style="color:#323232;">]
</span><span style="color:#323232;">random.shuffle(barrel)
</span><span style="color:#323232;">
</span><span style="color:#62a35c;">print</span><span style="color:#323232;">(</span><span style="color:#183691;">"Russian Roulette"</span><span style="color:#323232;">)
</span><span style="font-weight:bold;color:#a71d5d;">for </span><span style="color:#323232;">i </span><span style="font-weight:bold;color:#a71d5d;">in </span><span style="color:#323232;">barrel:
</span><span style="color:#323232;">  </span><span style="color:#62a35c;">input</span><span style="color:#323232;">(</span><span style="color:#183691;">"Press enter to shoot"</span><span style="color:#323232;">)
</span><span style="color:#323232;">  </span><span style="font-weight:bold;color:#a71d5d;">if </span><span style="color:#323232;">i </span><span style="font-weight:bold;color:#a71d5d;">== </span><span style="color:#0086b3;">1</span><span style="color:#323232;">:
</span><span style="color:#323232;">    </span><span style="color:#62a35c;">print</span><span style="color:#323232;">(</span><span style="color:#183691;">"You are dead."</span><span style="color:#323232;">)
</span><span style="color:#323232;">    exit()
</span><span style="color:#323232;">  </span><span style="font-weight:bold;color:#a71d5d;">else</span><span style="color:#323232;">:
</span><span style="color:#323232;">    </span><span style="color:#62a35c;">print</span><span style="color:#323232;">(</span><span style="color:#183691;">"Phew. You survived."</span><span style="color:#323232;">)
</span>
  • All
  • Subscribed
  • Moderated
  • Favorites
  • [email protected]
  • random
  • lifeLocal
  • goranko
  • All magazines