r/PythonLearning • • Jul 31 '26

Chinese students:Starting an AI postgraduate in 20 Days. My Background Is Weak—How Should I Prepare?

2 Upvotes

I alredy joined a research group at HUST. My undergraduate is complete garbage, the undergrad system was extremely water.

The only AI-related project I completed during my undergraduate studies was a very basic ResNet-18 image classification project. I don't feel like I have much practical experience

It's also been a while since I last programmed,and I've forgotten a lot of Python。

Academically, I was more of a "good test taker" than someone who built projects or explored topics independently. I could do well on exams, but my hands-on skills and understanding are much weaker than I'd like.


r/PythonLearning • • Jul 30 '26

Learning recursion and solving problems.

Post image
3 Upvotes

Problem: You're climbing a staircase with n steps. You can climb 1 or 2 steps at a time, except you're not allowed to take two 1-steps in a row (no "1,1" sequence anywhere in your climb). How many distinct ways can you reach the top?


r/PythonLearning • • Jul 30 '26

Discussion Python web dev in 2026, are you still reaching for Django/Flask, or has FastAPI + something else become your default?

6 Upvotes

I've been defaulting to FastAPI for almost everything now, even projects that don't need async; mostly for the automatic docs and validation, not the performance. But I keep wondering if I'm just following hype and Django would actually save me time on anything with more than a handful of models.

Curious how people are actually deciding this in practice:

  • If you start a new project today, what's your first framework pick, and what actually made you choose it (not what you'd tell a job interviewer)?
  • Anyone gone from Django → FastAPI (or the reverse) and regretted it?
  • For people doing solo/small-team projects: is DRF + Django still worth the ceremony, or has ninja/ninja-schema/ORM-agnostic stacks made that unnecessary?
  • What's the thing about your current stack that annoys you but you haven't switched over?

Not looking for a "just use X" answer, more interested in the actual trade-offs people are hitting.


r/PythonLearning • • Jul 30 '26

for loop

16 Upvotes
words = ['sky', 'apple', 'rhythm', 'fly', 'orange']

for word in words:
    for letter in word:
        if letter.lower() in 'aeiou':
            print(f"'{word}' contains the vowel '{letter}'")
            break
    else:
        print(f"'{word}' has no vowels")

I am trying to learn to code, and I am, at the moment, looking at loops. I am a bit confused on how this loop was able to function, though, as there is no variable for letter or word, so how would Python know what it is? In addition, how does the code, like, function? Does it look at each word individually ? Again, the second part of the code states:

 if letter.lower() in 'aeiou':
            print(f"'{word}' contains the vowel '{letter}'")
            break

We haven't given a value for letter?

Lastly, how would the code know what to print? in the first phrase:

            print(f"'{word}' contains the vowel '{letter}'")
            break

Is it going to state all the words with the given value 5 times?

Sorry, as I have asked quite a few questions, and thank you in advance.


r/PythonLearning • • Jul 30 '26

Better collision handling

15 Upvotes

In this git commit we switch from simply swapping the speed of two colliding units to elastic collision handling for more realistic collisions. The linear algebra implementation does add complexity to our code but, as it's all confined to a single function, it should not hamper further development of our collaborative PythonLearningGame project.

  • Who has other fun ideas we could add, maybe more unit types?
  • Who wants to commit his/her own code changes?

See the submit changes instructions.

previous PythonLearningGame post


r/PythonLearning • • Jul 30 '26

Where should i learn python from?

3 Upvotes

Yt-

- Bro Code

- Data with Baraa

or do any free certification courses?

i tried the coursera meta python course since my college python professor does not teach well, my loops and functions are weak due to that, so i thought I recovered from it- eventually i noticed the course content was very fast paced, i have to go through document and other sources🥲.

there is also an point that C professor taught very well that my c is now better python. help to pick the ond resource that covers python 🙏🏻


r/PythonLearning • • Jul 30 '26

Help Request Python full stack | Ai and Ml | Data science | Data analysis which one can I choose?

2 Upvotes

I have enrolled in a Python Full Stack Development course, but many people are suggesting that I should learn AI & Machine Learning, Data Science, or Data Analytics instead. Now I'm confused. Which path should I choose?


r/PythonLearning • • Jul 30 '26

New to python

3 Upvotes

Im new to coding and started off with c# but eventually moved to py a day later because i heard it was easier, it is easier but the way people explain it on youtube is a little complicated for my small brain, im watching bro code learn python in 1 hour then moving on to the 12 hr vid but 30 mins in he starts talking in a way i dont seem understand and typing code i cant process so i js quit for the night, if anyone has anytips that could help me or any other youtuber( i learn better with vids and visuals) that would be greatly appreciated ive also tried some websites like free code camp, the odin project but there not like teaching step by step but rather making me type code i dont understand for instance once asked me to “create a function called pin_extractor with a parameter poem” which just sounds like gibberish to me considering i only know print(“hi”) but i was thinking my first big project would be like a book or something if possible. Thanks


r/PythonLearning • • Jul 30 '26

Welcome everyone, I'm very interested in where to start learning Python. I'd be wondering where to start studying it, and what materials on the Internet (and not so much) will help me. Thank you all in advance

0 Upvotes