+ 1

Need help with last 2 lines

#dice game random 1-6 import random for i in range(1): Value=random.randint(1,6) print(Value) if (value) == (6): print ("you win") https://code.sololearn.com/cz5BXFmBAl3J/?ref=app

22nd Sep 2019, 4:32 PM
Lyle
Lyle - avatar
3 Respostas
+ 4
Python is case sensitive, Value and value are not the same. Change first letter of Value to lowercase in your code and it will work.
22nd Sep 2019, 4:35 PM
voja
voja - avatar
0
Correct the variable name. Change 'value' to 'Value' (capital V) in if condition .
22nd Sep 2019, 4:38 PM
Kuri
Kuri - avatar
0
yea me still hafe asleep big brain Moment thanks you 2
22nd Sep 2019, 4:39 PM
Lyle
Lyle - avatar