Demo entry 6169043

Coinflip

   

Submitted by anonymous on Oct 09, 2016 at 20:05
Language: Python 3. Code size: 287 Bytes.

#Simple Coinflip #1
#Python Version 3.4.X

import random

coinflip = random.uniform(0,1)
print(coinflip)
res = (coinflip * 100)
print (res)

if (res) > 50:
    print("Terrorists Side has won i.e > 50%")
elif (res) < 50:
    print("Counter-Terrorists have won i.e > 50%")

This snippet took 0.00 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).