+ 1

Trouble with Python syntax — Suggestions?

I’ve programmed in a lot of languages over the years (C, C++, Java, JavaScript, Ruby, to name a few), but I’ve had a lot of trouble adjusting to the formatting in Python — specifically how sensitive it is to spacing. I keep getting errors when coding in Python and most of the time, it’s because of that. Has anyone else had this issue? Do you have any suggestions on how to overcome this? I’d really like to overcome this issue so I can succeed in Python. Thank you for any help you can provide!

10th Oct 2018, 2:42 AM
sky_blue02
sky_blue02 - avatar
4 Respostas
+ 4
It is simply something you wiil get used to.
10th Oct 2018, 5:03 AM
Paul
Paul - avatar
+ 3
While I haven't as yet tried it, Intellij supports Python. They provide a command to reformat code & are really good at producing errors during typing so it is likely they would detect & highlight indention errors as you type or autoindent so you can't screw it up.
10th Oct 2018, 7:36 AM
John Wells
John Wells - avatar
+ 3
Personally, a lot of my first languages assigned columns to purposes so I've always been a bit fanatic about consistant spacing. My Python issue is remembering the colon.
10th Oct 2018, 7:47 AM
John Wells
John Wells - avatar
+ 1
Thank you for sharing your expertise! It seems that practice an appropriate IDE for learning are the best options. I’ll get right on it. 🙂
10th Oct 2018, 11:33 PM
sky_blue02
sky_blue02 - avatar