Ok this is weird... I'm trying to accomplish the following: if i have lost up to 2 times then bet = startingbet but if I have lost more than 2 times maximum of (5 times lost) then bet = bet * 2 if more than 5 times lost then bet = startingbet
if losttwice <= 2:
bet = startingbet
elif losttwice <= 5:
bet = bet * 2
else:
bet = startingbet
also if possible can anyone help me to add one more thing to this. I would like to do a random 50% chance when losttwice <= 2 (when I lost 1-2 times) for it to be bet = startingbet or bet = bet * 2 based on 50% chance
Thanks a lot!
The error:
File "scripy.py", line 153
elif losttwice <= 5:
^
SyntaxError: invalid syntax

File "scripy.py", line 153 elif (losttwice <= 5): ^ SyntaxError: invalid syntaxelifwithout anif?