0

Programmers can someone help me ?

I have python version 3.8 and when i type etc. "Num=5 If num==5: Print ("number is 5") Else: There is syntax error :invalid syntax on else i tried to reinstall still same Thanks in advance

12th Dec 2019, 10:01 PM
Unninews
Unninews - avatar
6 Answers
+ 1
Why you have added " before num=5
12th Dec 2019, 10:06 PM
A͢J
A͢J - avatar
0
Your indentation was absolutely wrong..
13th Dec 2019, 5:58 PM
Codebeast**
Codebeast** - avatar
- 1
Error is on else:
12th Dec 2019, 10:10 PM
Unninews
Unninews - avatar
- 1
I solved it myself
12th Dec 2019, 10:28 PM
Unninews
Unninews - avatar
- 1
Gotta erase space before else Instead of default: Else: You need to Else:
12th Dec 2019, 10:29 PM
Unninews
Unninews - avatar
- 2
Thanks anyways
12th Dec 2019, 10:29 PM
Unninews
Unninews - avatar