What tips woukld you give to stay motivated

basically i want to pursue a career in development especially with main focus on back end development. I have a bit of knowledge on c++, html, css and a bit of javascript from what i learnt in +2. I wasnt the best at it but i did all my projects and assignments given to me by my teacher by myself and worked my ass of to complete them (the programs werent that complex just simple book haru ma bhako assignments and 12 ko final ma bhako projects)

But since i completed +2 last year in 2023, i tried learning python but i got bored quickly maybe cause i hadnt learnt any thing for almost 2 months. Mero new year resolution yo pali chai learn python properly and actually commit to it and build a portfolio. I also did the freecodecamp ko responsive web design certificate around november but since then i havent done anything.

What tips would you give me to stay motivated? and if you can, also provide me some resources that are project based. Saw a previous post of someone asking something similar about starting to learn python, but i mainly want to ask how do i motivate myself to keep learning even when the process gets hard and share your thoughts if youve had similar experience