r/PythonLearning • • Mar 19 '26

For Beginnings...

Post image
405 Upvotes

r/PythonLearning • • Apr 26 '26

Discussion Good for beginner?

Post image
404 Upvotes

I made this in about 5 minutes is it good?


r/PythonLearning • • Apr 24 '26

Day 1 of learning Python

Post image
403 Upvotes

Greetings and salutations to you all. I had been thinking about learning how to program for some time now and finally decided to take action. After visiting several bookstores in my area, I stumbled upon this title. Come to find out it’s one of the most recommended books to beginners. I’m very excited to get started.

Python vets,

What advice do you have for me and others who are in the same position?

I await to hear your thoughts.

Thanks guys.


r/PythonLearning • • Oct 20 '25

Couldn’t skip this meme

Post image
403 Upvotes

r/PythonLearning • • Jul 08 '26

I created password generator using python

Post image
390 Upvotes

what should i create next


r/PythonLearning • • Sep 14 '25

First Python Program

Post image
387 Upvotes

So I started learning python some weeks ago and I created a program based on what I’ve learnt so far. So it’s a program that does age verification. What do you think about this??


r/PythonLearning • • Jun 03 '26

Showcase My first programming experience!

Post image
384 Upvotes

A few weeks ago, my cousin gave me his laptop (he's buying a new one). Though he said, the laptop doesn't use Windows but linux. I did not understand at the time but okay it's free laptop who cares. So I learned for weeks how to use the laptop, it was weird, not the usual experience I have.

Anyway, during that week I also learned some scripting? programming? coding? and he taught me well from the ground up and give references, taught me how to read the documentation and stuff. And finally i have this (the image). He told me to post my achievement online XD.

It was fun to be able to tell the computer what to do. I really like it and going to explore it further though he's going back soon so I'm on my own now. Hopefully I can learn a lot. A bit summary of what I've learned from him (correct me if im wrong this is roughly from my notes):

  • Computers have memory (like RAM and registers) and processor and storage

  • They perform operation like fetch instruction, decode instructions and execute instructions

  • Computers have a set of instruction that it can run. The basic is

    • arithmetic and logic operations (like comparing value)

    • control flow like jumping to a certain instructions

    • i/o

    • load and store data in memory

  • Computer executes instructions in binary number

  • Computer now has OS which will load our program to the computer and handle bunch of interacting with hardware thing that we don't have to (that's

  • The layer starting from the bottom roughly is [hardware, OS, shell, applications]

  • The language is what we used to tell the computer what to do

  • Our program get translated to machine language (a language the computer can understand, I assume it's just 1s and 0s) using the tools called interpreter/compiler

  • Each scripting language has it's own rules but it all map to what the computers can do

  • Scripting/programming/coding is just a means to map our thoughts to what computer will do, so pseudocode/flowchart/sketching and planning what to do first will help, language is just syntax after all

There's more in my notes but i guess it's all yapping and unorganized. Wish me luck for future stuff.


r/PythonLearning • • Jun 15 '26

My First Python Program 🥳 A simple Calculator

Post image
383 Upvotes

r/PythonLearning • • Jul 17 '26

I build this after learning OOP

Post image
380 Upvotes

r/PythonLearning • • Aug 07 '26

Made my first project in python

Post image
376 Upvotes

A chore list I started learning python last week and this was the first project on my list any advice helps im using vs code for this if you have any resources or suggestions pls share


r/PythonLearning • • Mar 09 '26 This

Showcase Paper coding.

Post image
368 Upvotes

I coded my assignment and dang I liked it but my wrist hurts, just wanted to share and know if others still paper code.


r/PythonLearning • • Aug 31 '25

Day 41 of learning python

Post image
363 Upvotes

I needed 41 days to completely be able to get a task and write it completely from my head, not looking to my notes or using ChatGPT, search engines etc..

Also, function defining is something i added just because i felt i wanna try out. I got that idea randomly. I was like: "Wait, i remember what i read in lecture about functions, let me try this." And it totally worked.

This was the task:

The user enters a sequence of numbers until they type "stop".

The program creates three lists: positive*,* negative*, and* zeros*.*

It prints the sum, average, minimum, and maximum number for each list.

Please let me know your thoughts. Also:

What should i learn next that can get this to a new level?
Was there a mistake in my code when it comes to coding style?
Is there a more simple solution for my problem then my own?

Thanks


r/PythonLearning • • May 07 '26

Showcase Coded this for my homework assingment in my freshman year of college

Thumbnail
gallery
361 Upvotes

I'm a meteorology major, and this was for my meteorlogical instruments and data analysis class.


r/PythonLearning • • Jun 09 '26

What the heck is self in classes

Post image
347 Upvotes

Can someone explain to me how to use self in classes?

Why are we using self.name instead of regular variables we are using. Whats the difference between self and regular parameters we are using in functions.

I would love to learn how to use self but its confusing


r/PythonLearning • • Apr 14 '26

First mini code. New to Programming in general. Any advice/guidance would be appreciated.

Post image
345 Upvotes

For some context I’m in school right now for Computer Science but I’m 100% online (i have to work full time bc i pay all my expenses) so I haven’t had any Interns or Projects and I spent half my college taking core classes and I feel extremely behind because I just got into my major classes this past fall 2025 semester which was mainly IT and just got into my Data classes this spring 2026 semester. I’m wanting to be a Backened Dev in the future but I’m just needing a little guidance or roadmap of what I need to learn. Right now I’m doing the 100 days of code on Udemy but after I have knowledge on Python what other languages do I need to learn? Along with Tools and Frameworks. I know this is a Python sub but I’m sure there’s some experienced people in here. Anything would help feel free to ask questions and thanks in advance.


r/PythonLearning • • May 10 '25

What I’ve Learned After Teaching Python to 10 Students in the Last 1 Month

341 Upvotes

Over the last month, I mentored 10 beginners in Python, all from very different backgrounds. Some were college students, others were working professionals trying to switch careers. I noticed certain patterns kept repeating:

Everyone starts strong: The first 3 days are full of excitement. They build simple programs, feel the rush, and believe they’re on track.

Week 2: When debugging hit, people start to hesitate. Not because it's hard but because it’s the first time it feels hard.

FOMO kills focus: The biggest reason people quit is distraction. Suddenly they’re watching videos on AI, ML, Data Science, or even switching to JavaScript all before learning how to write clean functions in Python.

Ironically, the students who avoided ChatGPT and tried to debug on their own progressed faster. Struggling (a little) with their own brain built confidence.

If there’s one thing I learned that is Consistency > Intelligence

The unstoppable ones weren’t the smartest they just coded 30 minutes a day, no matter what.

Happy to answer questions or share more if you're in the same boat.


r/PythonLearning • • May 30 '26

Showcase My Weather Map Project

Thumbnail
gallery
337 Upvotes

r/PythonLearning • • May 29 '25

Made this as of day 7 of learning.

Post image
337 Upvotes

I had learned upto defining functions and using build it and external modules now.. so gave myself a little terminal casino type project to make, and i made it (just have to do some polishing in ui, btw while making this i never found the need to define a function in this program although i was making a this to see if i have learned defining functions properly) I am open for any suggestions of you all!!


r/PythonLearning • • Aug 26 '26

it happens with me 😭😭😭

Post image
336 Upvotes

When I look at the code i wrote 1 week ago .

I feel like I have written a foreign language.


r/PythonLearning • • Jun 22 '26

First week oof Learning Python.

Post image
334 Upvotes

Hey I am new to Python and this is what i made in my first week. Do you think there is a way to improve it.


r/PythonLearning • • Apr 04 '26

Discussion 10 Python Tricks I Wish I Knew as a Beginner

332 Upvotes

I've been learning Python for about a year now and I keep stumbling on little features that make me go "wait, that's been there the whole time??" Figured I'd share the ones that actually changed how I write code day to day.

  1. Swap variables without a temp

a, b = b, a

I was writing temp variables like a caveman for months before I found this.

2) Underscores in large numbers

budget = 1_000_000

Python just ignores the underscores. It's purely for readability and honestly I use this constantly now.

3) enumerate() takes a start argument

for i, item in enumerate(["a", "b", "c"], start=1):

print(i, item) # 1 a, 2 b, 3 c

No more writing i + 1 every time you need 1-based indexing.

4) The walrus operator := (3.8+)

if (n := len(my_list)) > 10:

print(f"List is too long ({n} elements)")

Assign and check in one line. Took me a while to warm up to this one but now I love it.

5) collections.Counter is stupidly useful

from collections import Counter

Counter("mississippi")

# Counter({'s': 4, 'i': 4, 'p': 2, 'm': 1})

I used to write manual counting loops like an idiot. This does it in one line.

6) Star unpacking

first, *middle, last = [1, 2, 3, 4, 5]

# first=1, middle=[2, 3, 4], last=5

Really handy when you only care about the first or last element.

7) zip() for parallel iteration

names = ["Alice", "Bob"]

scores = [95, 87]

for name, score in zip(names, scores):

print(f"{name}: {score}")

Beats the hell out of for i in range(len(...)).

8) Dict merge with | (3.9+)

defaults = {"theme": "light", "lang": "en"}

user_prefs = {"theme": "dark"}

settings = defaults | user_prefs

# {'theme': 'dark', 'lang': 'en'}

Right side wins on conflicts. So much cleaner than {**a, **b}.

9) any() and all()

nums = [2, 4, 6, 8]

all(n % 2 == 0 for n in nums) # True

Replaced a bunch of ugly for-loop-with-a-flag patterns in my code.

10) f-string = for debugging (3.8+)

x = 42

print(f"{x = }") # prints: x = 42

This one's small but it saves so much time when you're printing variables to figure out what's going wrong.

Which of these was new to you? I'm curious what else I might be missing, drop your favorite trick in the comments.


r/PythonLearning • • Aug 22 '25

I am very happy because today I programmed the first project in my life

Post image
323 Upvotes

The project idea is a daily task management program: you add a task, delete it, and note the completion. Tomorrow, I will transform it into an interface with buttons and a graphical user interface using a GUI. God willing, I will develop it further in the future.


r/PythonLearning • • Jul 27 '26

My first mix mini project

Post image
307 Upvotes

I know I wrote some hardcore codes but this is ok for a beginner so plz help me to improve


r/PythonLearning • • Apr 19 '26 Bravo

I have tried to make a Rock, paper , scissor game.Is it good.

Post image
306 Upvotes

Hi everyone

I have maked a rock, scissors,paper game in python.

I have spent 3 hours in it . Fixing lot of bugs . And i am using pydroid 3 in mobile. I am learned from earlier mistake so I refined it and maked new program. That has main function and variable named user_input .you can easily run it .but it has a problem it keeps telling first line I have tried to fix it but failed. Can you give me suggestions to fix it.

And upvote, share, learn from my experience, have a good day to you.

And try to award(#free) me .

Thanks for watching my post.

Follow for more posts.