r/learnpython • • Jun 14 '24

How to learn python

Are there any ways a social sciences and humanities undergraduate student can pick up python more easily? I tried Linkedin videos, Kaggle, Harvard's CS50 python but it is still difficult and I often have problems solving the code challenges without looking at the solutions. Do anyone have any recommendations on any resources to learn python more easily? Please help.

0 Upvotes

12 comments sorted by

10

u/favored_disarray Jun 14 '24

If the cs50 class is too difficult for you then I'd suggest trying to learn from more kid-oriented resources.

Edit: not trying to shame you, I used to love sprites in high school

5

u/Chaos-n-Dissonance Jun 14 '24

So there's a reason they're called programming languages.

Imagine you wanted to learn Spanish, and only spoke English. You would learn by translating. "One in Spanish is Uno, two is dos, etc". Not the easiest thing, but pretty straight forward and just a lot of words to memorize. If you keep at it and take it seriously? You can become pretty damn good at that language within a month or two.

But... What about babies? They learn a language, and don't have anything to translate from. Suddenly... This is a lot harder. You have to learn everything that makes a language a language, all the rules for that specific language, and all the words. This is something that takes years, even decades... And I'm sure we all know a few people that struggle to speak even a single language coherently.

In this metaphor... You're the baby. You've never programmed anything before, you know exactly 0 programming languages. The hardest part? Is going to be learning your first. You're going to struggle with the basics. You're going to make mistakes. What you're trying to do, is not easy... Yet. But just like learning your first language... If you stick with it? Things will click, it'll become easier. You just gotta stick with it until it clicks.

2

u/[deleted] Jun 14 '24

I really liked codecademy 10 years ago. Not sure if it is free anymore.

2

u/4goman Jun 14 '24

It's not free, but codementum is a gamified python and javascript learning tool that I use to teach kids the basics.

2

u/aqua_regis Jun 14 '24

MOOC Python Programming 2024 from the University of Helsinki. Free, textual, extremely practice oriented and a top quality proper University first semester of "Introduction to Computer Science" course.

One of the best Python courses at the moment.

1

u/WelpSigh Jun 14 '24

If it's coming to you slower, the only answer is to power through and practice more. Programming with any language is very process-based - python gives you a lot of shortcuts vs lower-level languages but you still need to design algorithms. If you are more accustomed to using inductive reasoning and intuition, this may take time. I also came from a non-technical background and it just took doing a ton of beginner-level practice tasks until it started to click.

Avoid looking up solutions for your direct problem - just keep cracking at it until you work it out. Do Google if you have syntax problems, though. The process of figuring it out is how you get better, not actually submitting the correct solution. Think of it like learning to do Sudoku puzzles - you are slow at first, but eventually the patterns start sinking in and you get much faster/better.

1

u/tutoredstatue95 Jun 14 '24

Don't worry too much about having to look at solutions when you are first learning. Always give it your best shot without looking first, of course, but when you hit a wall and can't figure it out, then it's completely fine to see what you were missing.

Programming is a learned skill, and "you don't know what you don't know" is a defining concept. You need to build up the concepts that you do know before you should expect to come up with optimal solutions on your own. However, make sure you understand the solutions and why they are the solution before moving on for each and every problem.

Once you reach a point where you can look at a problem and think "I can solve this if I try hard enough", then you can fault yourself for needing to check.

As others have said, it just takes time and practice. Sure, some people have the background to understand concepts faster, but I promise most people have just pushed through until some core concepts finally click.

1

u/erkdalurk Jun 15 '24 edited Jun 15 '24

Udemy 100 days of python since no one has said it. I would also second that needing to look things up should not be so discouraging in the beginnings of your journey

1

u/Ecstatic-Highway1017 Jul 15 '24

I started taking notes while learning coding from youtube with OneBook extension and its very helpful When learning coding skills like Python online from videos or documents,
Notes helps you to note down your understanding like what you have thought and when you don't create notes it's tough to go back to your thoughts and revision of your understanding of the code.

You will not face the below 2 problems by using OneBook

  1. It's hard to make notes while learning online from videos or documents : No Notes = No     Revision = Less Confidence and Motivation = GIVE UP.

  2. Constantly switching between coding and watching videos every 2 mins wastes a lot of time.

For solving the above problem, you can use the OneBook chrome extension, it is very helpful for me.Chrome extension link : https://chromewebstore.google.com/detail/onebook/loecbgjbgcgjkhibllnjokjefojoheim?utm_source=rtc

0

u/[deleted] Jun 23 '24

[deleted]

1

u/[deleted] Jun 23 '24

No