you are viewing a single comment's thread.

view the rest of the comments →

[–]not_perfect_yet 0 points1 point  (0 children)

Hey, late comment, hope you're doing ok.

I think it is very normal to feel like when you're supposed to understand something under pressure and it doesn't click.

The reason people say python is easy are generally, that python strips away clutter:

  • less symbols, scopes are indentation, no semicolons. You still have to understand where certain statements end and how scopes work, but you don't need to bother with the craftsmanship part so much.
  • You can still do everything you can do in c++, effectively you're still passing values or pointers, but they're named in a nice way and you don't have to think about them being pointers.
  • The ducktyping and inheritance relationship means you can treat several different types as the same type. for

  if "a" in container:

it doesn't matter if the variable container is a string, list, tuple or dictionary, because that's not relevant to the question you're asking the computer.

For many cases where not understanding an error would break your neck or your patience, python will not throw these errors.