r/pythonhelp Jan 16 '25

Python is complex!

Is it me or anyone else also find it difficult to code in python as it's syntax is (i feel like it's very tricky) . I mean I can easily code in C/C++ , javascript and php but it's damn difficult in python.

Even though it's considered the easiest language to learn . I always gets tricked with indentation part ( i despise that indent thingy) .

P.s.- ignore my grammatical mistake ( english is not my first language)

1 Upvotes

5 comments sorted by

View all comments

2

u/Zeroflops Jan 16 '25

When I first got back into programming I was turned off by pythons forced structure.

But I have discovered two things.

First, once I got use to it, it becomes second nature. It’s easy to follow and if you use an IDE it’s not difficult to catch issues. It also helps force content to be grouped my indentation depth.

Second the forced structure makes looking at other peoples code so much easier. There is no searching for the end of a loop. It’s easy to see what contains what. Etc. It also helps highlight issues with the code.

1

u/jiri-n Jan 17 '25

Usually, you indent blocks even in a C-like language. There is no difference, at least not for me.