I have no idea why this gives a syntax error, please help. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I have no idea why this gives a syntax error, please help.

https://code.sololearn.com/cframH2IB8i5/?ref=app

24th Dec 2021, 7:35 AM
Brandon Clarke
3 Answers
+ 1
Error hint: ")" In line number 1 I hope you will get
24th Dec 2021, 7:46 AM
Ravi V
Ravi V - avatar
+ 3
Line 8: Look at `elif` condition. You are comparing `print` against zero.
24th Dec 2021, 10:46 AM
Ipang
+ 1
Fixed it, thanks. It pointing to line 3 threw me off
24th Dec 2021, 7:50 AM
Brandon Clarke