For most beginners, yes. C++ is harder to learn and to use day to day than Python, mainly because it asks you to handle types, memory and compilation more directly. Python takes care of many of those details for you. This site covers C++, so this article answers for C++, and the same overall picture holds for C, which also leaves memory to you.
How hard it feels also depends on what you want to build and what you already know.
Where Python is easier
- Types are handled for you. Python variables do not need declared types, and values carry their types while the program runs.
- Memory is mostly automatic. Python frees most objects once nothing refers to them anymore, so beginners rarely think about it.
- There is no compile step to run. You save a file and run it.
- There is less syntax to remember. Python uses indentation to group code, with fewer symbols to learn.
Where C++ asks more
- Static types. You declare the type of each variable, and the compiler checks it before the program runs:
int x = 5;
x = "hello"; // compile error: a string cannot be stored in an int
In Python, the same two lines run without complaint.
- A build step. Source files are compiled and linked, which means learning compiler flags and sometimes build tools.
- Pointers and references. These let you refer to objects directly, which is useful and easy to get wrong. Knowing whether an object lives on the stack or the heap, the subject of c heap vs stack, helps you use them safely.
- Manual resource care. Modern C++ handles most resources through objects that clean up when they go out of scope, but you still have to learn that pattern.
- Undefined behavior. Some mistakes compile and run, then crash or give wrong results, and the cause is not always obvious.
- Long error messages. Template errors in particular can run to many lines.
Where the difficulty is the same
Much of programming is the same in either language. Breaking a problem into steps, using loops and functions, choosing data structures and debugging all carry over. Someone who can solve problems in Python usually keeps that skill when they move to C++. The new work is mostly the rules that Python hides.
Which is harder depends on the goal
For scripts, data work and quick prototypes, Python usually gets results faster. For games, embedded systems and performance-sensitive software, C++ is a common tool, and the extra effort may be worth it.
Learning order
Some learners start with Python and then move to C++. They already know loops, functions and how to think through a program, so the new material is mostly the rules that Python hides. Others start with C++ and find it manageable, especially if they like knowing what the computer is doing. Learning c after python is a common route, but it is not the only one.
Bottom line
For most people, C++ takes more effort than Python to start with. The extra difficulty is mostly in the details you have to manage, not in the thinking itself. Steady, small practice helps most, whichever language you begin with.