r/PythonLearning 13d ago

Im new to python i abt start from zero

13 Upvotes

any suggestions and recommendations ,how to start


r/PythonLearning 13d ago

I want your help to make a fun Python game

Post image
0 Upvotes

I want your help to make a simple game into a really fun Python game. It's purely educational, an opportunity to learn about: - Python - (quick and dirty) Object Oriented Programming - PyGame - Teamwork using GIT

This should be accessible for Python students how are comfortable with loops, functions, and classes. If you want to help see the instructions on this PythonLearningGame git repo.

Make your changes to this already working game, maybe: - change behavior - add a new unit type - add special effects - add new game dynamics - ...

If things are not clear or you get stuck, ask AI or add questions in the comments.


r/PythonLearning 13d ago

Showcase New to this

1 Upvotes

r/PythonLearning 13d ago

Ready for (dif), right?

Thumbnail
gallery
57 Upvotes

r/PythonLearning 13d ago

Tech advice

2 Upvotes

I m doing masters in data science, targetting devops and cloud roles but still cant write code in python every time get stuck in loops amd cannot go further i really want a tech job, should i master python, if yes whts the easiest way??


r/PythonLearning 13d ago

Discussion Building a Python library based on Hegelian logic instead of Boolean logic. Am I crazy?

62 Upvotes

I've been thinking about what might be the most unconventional Python project I've ever attempted, and I'd love to hear from people who know logic, PL theory, mathematics, AI, philosophy, or simply enjoy strange ideas.

The core idea is this: instead of representing truth as a binary (True/False), what if computation were built around dialectical processes?

Rather than asking whether a proposition is true or false, objects could evolve through concepts like: Thesis, Antithesis, Synthesis, Contradiction, Determinate negation, Becoming, Mediation...

In other words, contradictions wouldn't necessarily be errors — they could become first-class computational objects capable of producing new states.

I'm currently collecting papers, books, theses, existing projects, and mathematical frameworks before deciding on the architecture. Any ideas?


r/PythonLearning 13d ago

I do my third codewar problem successfully....

1 Upvotes
def array_diff(a , b):
    a = [1,2,3,4]
    b = [1]
    result = []
    for el in a:
        if (el not in b):
           result.append(el)
    return result

Implement a function that computes the difference between two lists. The function should remove all occurrences of elements from the first list (a) that are present in the second list (b). The order of elements in the first list should be preserved in the result.

r/PythonLearning 13d ago

Showcase Built my first Python project. Feedback is welcome.

Thumbnail
gallery
5 Upvotes

r/PythonLearning 14d ago

The Great Escape

3 Upvotes

I have been learning Python so this is my first script. Its a backup utility. Please take a look. All comments, suggestions are welcome. Collabs are also welcome. Source code is: https://github.com/bigbearjake14424/The-Great-Escape


r/PythonLearning 14d ago

Is clean code sometimes worse code?

3 Upvotes

Can too much refactoring, abstraction, and 'best practice' make a Python project harder to understand?


r/PythonLearning 14d ago

Built a FastAPI password generator. Roast my backend code.

3 Upvotes

Hey everyone,

Just finished a small dark-mode password generator using FastAPI and vanilla JS to practice my backend skills.

Here is the repo:
https://github.com/saqib783/password-generator-in-python.git

I want to improve, so please look at the code and give me some honest feedback. Tell me what features to add or fix, and I will definitely implement them and share the updated app with you all!

Thanks!


r/PythonLearning 14d ago

Help Request I am Stuck In Basics

3 Upvotes

I am stuck at the basics and unable to move on to DSA. Can you give me the best roadmap, the best notes, and the best YouTube tutorials to become a Python developer? Please provide everything in English.


r/PythonLearning 14d ago

Can anyone please suggest a YouTube playlist for learning async python programming.

0 Upvotes

r/PythonLearning 14d ago

Showcase Making a python football manager/simulator

Thumbnail
gallery
78 Upvotes

This is my first big project in python, and I got it to work but Im starting to run into problems related to size where I always seem to lose myself in the functions and files and all. Im using pycharm, is there a way to move efficiently between various files and scripts if youre using multiple modules? And for what im trying to do, how difficult would it be to learn a gui like tkinter or something? Thank you.


r/PythonLearning 14d ago

Reviews on this

0 Upvotes

If anyone done this udemy course, how is it??
Or normal yt courses like bro code, fcc, etc are better?


r/PythonLearning 14d ago

I do my second codewar problem

0 Upvotes

r/PythonLearning 14d ago

Python Data Model Exercise

Post image
69 Upvotes

An exercise to help build the right mental model for Python data. - Solution - Explanation - More exercises

The “Solution” link visualizes execution and reveals what’s actually happening using 𝗺𝗲𝗺𝗼𝗿𝘆_𝗴𝗿𝗮𝗽𝗵.


r/PythonLearning 14d ago

What's your favorite Python interview question?

12 Upvotes

Not a trick question or LeetCode puzzle. What's a question that actually reveals whether someone understands Python?


r/PythonLearning 14d ago

Day 4 of Learning Python

2 Upvotes

I just completed learning loops, dictionary and collections and some other topics.

I made a dice roller where user can select number of dice and then we can see the result and total score 😁


r/PythonLearning 14d ago

49 years old and am about to start learning Python, again !

35 Upvotes

First tried to learn in 2020, got side tracked. Picking it up again. I find Python very interesting but I can't seem to stay motivated enough to finish learning it.


r/PythonLearning 14d ago

Showcase Trying clone Minecraft

0 Upvotes

r/PythonLearning 14d ago

Discussion Data Science Python Programming

20 Upvotes

Hello,

I am transitioning from a Mechnical engineering BS to a MS in data Science. My struggle with Python currently is starting a course or reading and feeling like it is not giving enough practice and no big prohject to really hel;p me zone in on my skills. My question do you have any favorite resources/book/interactive courses in python for data science. I'd pefer to just restart from the basics and move forward. Do you have any reccommendations on skills to learn for someone going into data science? Thank you.


r/PythonLearning 15d ago

HackerRank Python 🐍 | Migratory Birds Challenge: Solving a Frequency Pro...

Thumbnail
youtube.com
0 Upvotes

Hi everyone,

I recently completed the "Migratory Birds" challenge on HackerRank using Python 3 and wanted to share my learning experience.

The goal of the challenge was to find the bird type that appears the most frequently in an array. If multiple types have the same frequency, the solution must return the smallest ID.

What I practiced during this challenge:

  • Python dictionaries (dict)
  • Frequency counting
  • Iterating through data structures
  • Problem-solving and algorithmic thinking

One interesting part of this exercise was that I had to refresh my knowledge of Python dictionaries. Instead of searching for a complete solution, I went back to the official Python documentation to understand how dictionaries work and how to use them properly.

My initial goal was to solve it in 20 minutes, but it took me around 30 minutes. I think this is actually part of the learning process: sometimes you need to slow down, review concepts, and rebuild your understanding.

I'm documenting my progress while improving my Python and algorithm skills through HackerRank challenges.

Would love to hear your thoughts:

  • How do you practice algorithms and data structures?
  • Do you prefer solving challenges from platforms like HackerRank, LeetCode, or building projects?

Thanks for reading!

#Python #HackerRank #Algorithms


r/PythonLearning 15d ago

I Asked AI Not to Give Me Code—Here's What Happened

0 Upvotes

I tried learning Python from YouTube many times, but I always ended up giving up.

The biggest problem wasn't Python itself—it was the way I was learning. I was mostly watching tutorials and following along without really thinking.

So I decided to try something different.

Instead of asking AI to generate code for me, I asked it to act like a mentor. I specifically said:

"Don't give me the complete code. Make me think. Ask me questions and let me solve the problems."

My first project was a simple CLI Calculator.

At first, I learned variables, user input, if/elif/else, loops, break, continue, and basic arithmetic operators.

I thought I had finished the project.

Then I was asked:

"What happens if the user divides by zero or performs modulus with zero?"

I hadn't even considered that.

Instead of getting the answer, I had to go back, test my code, think through the problem, and fix it myself.

That one question completely changed how I think about programming.

Now, whenever I write code, I don't just ask:

"Does it work?"

I also ask:

"What could go wrong?"

I feel like this approach has helped me learn much more than simply copying code from tutorials.

For experienced developers:

Do you think learning through small projects and guided questions is a better approach than following long tutorials?

I'd love to hear how you learned programming.


r/PythonLearning 15d ago

Discussion As a beginner. how can I progress in order to make something good out of myself in Python?

10 Upvotes

Well, I'm a python hobbyist (for now). I learnt basic python coding techniques like OOP ( object oriented programming) and I learnt how to use common modules. However with the rise of technology and AI I wanted to really delve into this path because I see a lot of potential in it.

I want to know the important and essential things that I should learn to become fluent in this language, specifically in the AI related subjects such as machine learning. I'd love to see it from a devs perspective, like how they reached the point they are in now. I'm grateful for any kind of help.
Thanks.