+ 1

Why this code doesn't run?

Hello, I write a small code to play a roulette's game, but it doesn't run. There is an error at this line : if bet > amount: It says the error is with the ":". I don't understand why. I'm almost sur I made a beginner mistake, but can't identified it. When I delete another line, it work fine. So... I'm lost. Here is the complete code : https://code.sololearn.com/cLUj8Qq76XDf/#py (Still a work in progress, but if you have any advice, I'll gladly take it.) (... I didn't verify then end yet.) (... Promised I'll do it when this error is in the past.)

7th Dec 2019, 7:01 PM
Morgane Zabzab
3 Antworten
+ 4
line 23 a parenthesis at the end of the line is missing 2 variables *red* and* black* are not defined before using them
7th Dec 2019, 7:20 PM
Lothar
Lothar - avatar
+ 1
Wow, that was a fast answer, thank you very much !! I'll correct this right now, thanks again.
7th Dec 2019, 7:25 PM
Morgane Zabzab
+ 1
Annnd... It works ! Thanks a lot, it may be nothing, but as my first no so short code... I'm proud. ^^
7th Dec 2019, 7:35 PM
Morgane Zabzab