+ 1

Why am I getting this error?

Hi guys, when I try to compile the codes you see below, it says "source_file.py line 2 print (x)" or something, I'm using python 3, I wonder why? x = 123.456 print (x) x = "hi" print (x + "!")

16th Aug 2022, 2:07 PM
Im OANDS
Im OANDS - avatar
4 Answers
+ 4
Identation error. Save it and share link of code so it is understandable how you are writing this? Your All lines should start without space.
16th Aug 2022, 2:10 PM
Jayakrishna šŸ‡®šŸ‡³
+ 3
Im OANDS , since you have not started to learn from any tutorial, i recommend you to do so. you can start with *python for beginners*. happy coding!
16th Aug 2022, 3:41 PM
Lothar
Lothar - avatar
+ 2
Indentation is critical in Python. Do not indent the lines
16th Aug 2022, 2:09 PM
Lisa
Lisa - avatar
+ 1
Ok guys, thanks i solved that
16th Aug 2022, 2:12 PM
Im OANDS
Im OANDS - avatar