I keep getting syntax error | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
0

I keep getting syntax error

Hey guys. First time coding/trying this. Trying to familairise myself with very basic stuff first. when i type equations into console it keeps returning syntax error. I've tried different ways... 2+2, >>> 2+2, 2 + 2, also tried division, multiplication, etc can't seem to get an output. Any help would be good. Thank you

19th Oct 2016, 7:55 AM
Karl Beacham
Karl Beacham - avatar
4 Réponses
+ 1
what exactly did you type?
19th Oct 2016, 8:11 AM
Sunera
Sunera - avatar
0
Try using a text editor like brackets.io or CoffeeCup
19th Oct 2016, 4:43 PM
Nick
Nick - avatar
0
Sunera.I'll put each variant i tried on a nwe line. I typed... >>> 2+2 >>> 2 + 2 2+2 2 + 2 did same variations with / & * & - I'll look into those Nick
19th Oct 2016, 5:47 PM
Karl Beacham
Karl Beacham - avatar
0
Try this: x = 2+ 2 print(x)
22nd Oct 2016, 10:57 AM
Monro Khoury
Monro Khoury - avatar