Sep-22-2021, 01:33 PM
import random l = 0 p = 3 o = 2 k = 1 x = input("enter a number 1, or 2: \t") print("\n\n you chose " + x + " !") if(x = k) type(true) x = random.randint(1.0, 10.0) print(x) if x = 0 type(true) x = random.randint(5.0, 8.0) print(x)
can someone please explain why this doesn't work?