0

Why is my "if" being put as incorrect syntax

The if statement in my function is "incorrect syntax". How can this be fixed? The code: https://code.sololearn.com/cXAwoI3IS16N

24th Aug 2018, 8:04 PM
Fbia34
Fbia34 - avatar
7 Respostas
24th Aug 2018, 8:22 PM
Sousou
Sousou - avatar
+ 1
https://code.sololearn.com/c6hnFkh9Tao8/?ref=app
24th Aug 2018, 8:18 PM
Théophile
Théophile - avatar
+ 1
No problem Fbia34
24th Aug 2018, 8:48 PM
Sousou
Sousou - avatar
0
The code must be like that : def function(): if random(0, 1)>0: "your code"
24th Aug 2018, 8:17 PM
Théophile
Théophile - avatar
0
Here is your corrected code
24th Aug 2018, 8:18 PM
Théophile
Théophile - avatar
0
thank you to Sousou and Théophile PICHARD for the help
24th Aug 2018, 8:47 PM
Fbia34
Fbia34 - avatar
0
You're welcome!
24th Aug 2018, 8:47 PM
Théophile
Théophile - avatar