I am running Python 3.6.4 and having trouble with the randint function. In trying to create a simple piece of code to create a random number and for each number, print a different response. My current code reads as follows:
from random import *
test = randint(0, 3)
if test == 0:
print("Zero")
if test == 1:
print("Number One")
if test == 2:
print("Number Two")
if test == 3:
print("Number Three")
The only problem is, It will only print something if the randint creates the number zero. So it has a one in 4 chance of printing "Zero", the rest print nothing.
I'm obviously being an idiot and missing something really simple but...
ifshould be at the same level, not nested.