Winning and loosing with roulette wheel
<pre><code>#This is a roulette wheel

import random 
import time
#Randomiser
green = [0]
red = [1,3,5,7,9,11,13,15,17,19,21,23,25,27,29,31,33,35]
black = [2,4,6,8,10,12,14,16,18,20,22,24,26,28,30,32,34,36]
spin = random.randint (0,36)
#Program
bet = int(input("Enter your Bets: "))
colour = input("Pick your Colour: ")
print ("The wheel is spinning")

if spin in green:
    print ("The ball stopped on green")
    print ("You won",bet*100,"!")

if spin in red:
    print ("The ball stopped on red")
    print ("You won",bet*2,"!")

if spin in black:
    print ("The ball stopped on black")
    print ("You won",bet*2,"!")
</code></pre>

<p>It tells if someone won. But it can't tell if someone lost. I've been learning python for a couple of months and was wondering if anyone can help me out. Thanks!</p>

<pre><code>if spin in green:
    winning_color = "green"
    print("The ball landed on", winning_color)
if spin in red:
    winning_color = "red"
    print("The ball landed on", winning_color)
if spin in black:
    winning_color = "black"
    print("The ball landed on", winning_color)

if winning_color == colour:
    print("Congrats you won!")
    print("You won", bet*2, "!")

else:
    print("Sorry you lose")
</code></pre>

<p>Something to be aware of, you should use </p>

<pre><code>if somethingHappens:
    doSomething
elif somethingElseHappens:  #Stands for else if, must be after the first if
    doThisInstead
else:  #This is Pythons catchall if the conditions above fail, this will run
    doThisIfNothingElse
</code></pre>

python