r/learnpython • • 11h ago

Learning code and programming

Im on a gap year and totally new to coding im based in the UK so i have not done any comp sci GCSE or A-Level and im struggling to learn. I tried the Harvard lectures but I couldn't understand what he was saying and the input he would put in wouldn't make sense to me. Im bored in my gap year and want to pick up a new skill any help or advice would be appreciated.

8 Upvotes

8 comments sorted by

3

u/Fresh_Key_8986 10h ago

You don't have to understand all the concepts in one go. Think of it like the 1% improvement rule Don't focus on mastering programming in a day, just focus on understanding one small concept today and building on it tomorrow. Even if you understand only a little bit at first, keep showing up consistently. Small improvements compound over time. Don't aim to be perfect, just aim to be a little better than yesterday.

2

u/Agawell 10h ago

The trick is to take it slowly and do all the exercises as they come along and don’t advance until you’ve finished the exercise

Don’t just watch hours of videos.. you’ll learn nothing

Work out what you need to do before you start writing code - write the instructions in plain English as comments and then translate them to code - ie solve the problem first and then write the code

If you don’t understand what’s happening in your code use print statements to see what is happening

2

u/Glitterbombastic 10h ago edited 10h ago

You can do it!!

Try online bootcamp type sites to get familiar with the basics and improve - things like Codeacademy, freecodecamp, Codesignal and datacamp have free tiers and premium tiers and there are many you can pay for too (I’ve heard boot.dev is good, Udemy).

There are great websites for info on the basics like Geeks 4 Geeks off the top of my head. If you hear a concept you don’t understand and reading about it doesn’t help there’s guaranteed to be a YouTuber who’s explained it with visuals and you can use AI to go deeper into concepts you’re unsure about.

Be wary with AI - only use it for explanations not asking for code at this stage. Try to solve any problems on your own first and if you can’t in a set amount of time like an hour or 30m only then consider asking for AI for help. You’ve got to get your brain working to learn this.

Edit: also worth noting some of the bootcamp style websites offer their own certifications which gives you something to put on your CV in the beginning when you don’t have much experience

1

u/EnvironmentalDot9131 10h ago

The learning code is good

1

u/Outside_Complaint755 7h ago

If you were doing the Harvard CS50 lectures, you also need to do the associated problem sets - that's where the real learning happens.

Consider trying a free e-book resource such as Automate the Boring Stuff

1

u/acfot 7h ago

Yeah those Harvard lectures move really fast, they kind of assume you already know the basics. What worked for me was starting way smaller, just variables and loops in one place, and typing out every little program by hand instead of just watching someone else do it. Once I could make a tiny thing work on my own, like a guessing game or a simple calculator, the bigger stuff started making a lot more sense. I'd just pick one beginner course and stick with it till the end instead of jumping between five of them.

0

u/nullptr_0x 5h ago

I have a free full interactive course I made for some friends. Maybe try it and see I'd it helps it stick.

See https://understandit.dev