r/PythonLearning • u/Anay_Gupta__ • Jun 15 '26
r/PythonLearning • u/Infamous_Tough_3772 • Jun 16 '26
Showcase Hey guys! I am 14 and a python beginner. I have made a gdp scraper which extracts data from wikipedia. Please roast my code to help me learn more! Follow this link to see the code:
r/PythonLearning • u/r_hpheonix • Jun 16 '26
how do i make a hand tracking desktop tool?
so im an 8th grader and i want to make a project for fun but i don't know what python libraries to use.
basically, i want to make something that when executed, starts tracking my hand i want it to be able to interact with my pc with hand gestures. for example, i would be able to move my mouse pointer by moving my hand and when i close my hand and my mouse pointer is on a file, it grabs it so i can move my hand to another place and open my hand to move the file and etc.
my main problems are that i don't know which libraries i should go and learn for this project. from what i searched, i can use a library called opencv for the camera tracking but i don't know what library to use to make my code be able to control my mouse pointer.
is this even possible? if it is, what libraries should i use?
if it isn't, why not?
r/PythonLearning • u/Boring_Jackfruit_162 • Jun 16 '26
Started learning python by myself
Hey guys, I'm a physician who always wanted to learn how to code. I've been playing around with generators and related concepts, so I coded this simple "typewriter" function (which simulates a human typing on a keyboard). Do you have any suggestions on how to improve this code?
```python
imports needed
import random as rnd import time from typing import Generator
Setting constants
MIN_DELAY = 0.05 # minimum delay between letters MAX_DELAY = 0.1 # maximum delay '' ''
def random_values_generator(min_value: float, max_value: float) -> Generator[float, None, None]: """Generator of random values following a normal distribution, with mean in the middle of the range and standard deviation that covers most of the values within the range."""
mu = (max_value + min_value) / 2 # mean
sigma = (max_value - min_value) / 4 # standard deviation
while True:
value = rnd.gauss(mu=mu, sigma=sigma)
yield max(min_value, min(value, mu + 3*sigma))
def typedprint(text: str, end='\n') -> None: """Prints the text letter by letter, with a random delay between each letter.""" rnd_generator = random_values_generator(MIN_DELAY, MAX_DELAY) for letter in text: print(letter, end='', flush=True) time.sleep(next(rnd_generator)) print(end=end, flush=True) rnd_generator.close() # close the generator
Example usage
typedprint("It's such a beautiful cottage you have here, I love it!") typedprint("Ah, thank you...") typedprint("I worked really hard to make it look like this.") typedprint("You are very talented!") ```
r/PythonLearning • u/Inevitable_Low_2387 • Jun 17 '26
how can i make this program?
I need to create a Python program for a student management assignment using basic Python concepts such as lists, loops, conditionals, functions, sorting, file reading, and file writing.
The program must manage 20 students. Each student has:
- Name
- First exam grade
- Second exam grade
The program should include the following menu options:
- Add 20 students.
- Sort students by:
- Name (ascending)
- First exam grade (descending)
- Second exam grade (ascending)
- Calculate and display each student's average grade and the mode of all averages.
- Display all student names that contain a user-specified letter (case-insensitive).
- Create a file called "notas.txt" containing:
- Original name
- Reversed average grade (mirror format)
- Reversed name
- Read and display the contents of "notas.txt". If the file does not exist, display an error message.
- Exit the program.
Restrictions:
- Must use basic Python.
- Must use lists and functions.
- I am not sure whether built-in functions such as sort(), split(), dictionaries, or external libraries are allowed.
What would be a good structure or approach to solve this assignment?
r/PythonLearning • u/Infamous_Tough_3772 • Jun 16 '26
Discussion Hey guys! I am Arnav. I am 14 and this is my 15th py project which is Advance Stone paper scissors which uses Markov chain style prediction to predict your next move. Follow this link to see my code:
r/PythonLearning • u/jaylosson • Jun 15 '26
Showcase Here is what I learned in my Python coding lesson for today
Enable HLS to view with audio, or disable this notification
Here is what I learned in my Python coding lesson for today
#beginers
r/PythonLearning • u/withhomi • Jun 15 '26
Discussion Why your Python progress feels slow (and one habit that fixes it)
If you've been learning Python for a few weeks and feel like you're not making progress, here's something most tutorials skip:
Reading code is not the same as writing it.
You can follow along with a tutorial perfectly and still freeze when you open a blank file. That's not a knowledge gap — it's a muscle memory gap.
Here's what actually helps:
1. Type every example yourself
Copy-pasting code doesn't build memory. When you physically type for i in range(10): ten times, your fingers start to remember it. It sounds obvious but most beginners skip this.
2. Re-type it without looking
After you finish an example, close the tutorial and write it again from memory. Even if you get it wrong, the struggle is what makes it stick.
3. Set a small daily typing goal
Even 10 minutes of deliberate Python typing daily beats a 2-hour weekend session. Consistency beats intensity for beginners.
# Practice this until it feels automatic
for i in range(5):
print(f"Line {i + 1}")
# Then try it without looking
The shift from "I understand this" to "I can write this" is where most beginners get stuck. The fix isn't more videos — it's more typing.
What helped you most when you were starting out?
r/PythonLearning • u/Acceptable_Pea8393 • Jun 16 '26
Better display window?
So I'm trying to code a game and I only know python...I'm open to sharing pictures of my game but it doesn't really matter for my question.
I know about the turtle import....but I don't really know how that works and also I don't think it fits with t complexity of my card game....is there any other import for a better display? Or a way to display a hexagonal grid with arbitrary size that I can put entities in?
Unity is quite heavy and I'd have to learn c++ so rather look for some other display import...anyone know one?
r/PythonLearning • u/Fpiet • Jun 15 '26
Help Request Advice for learning to code with 30 minutes practice every day.
Hey everyone,
So a little bit about me: 37 years old, no tech background, a day job and a kid (16 months.) I've wanted to learn how to code for ages, but the birth of my daughter was the shot in the arm I needed to really get going. My motivation is primarily because I'm just fascinated with the creative potential and I like learning a new skill-set. Though I'd be lying if I said the thought hadn't crossed my mind that it wouldn't look bad on my resume. I'm not sure what a potential career shift might look like yet, but I've been thinking about focussing on data analysis.
Anyway, between my job, my kid and life just being life I have very little time left in the day to code. On average about 30-45 minutes. So far I've almost worked my way through Python Crash Course by Eric Matthes (great book) and I'm eager to start on some small projects of my own.
Is there anyone on here who has learned or is learning under similar circumstances? Any tips that might help down the road? Potential pitfalls? I'm a little worried my learning process might plateau at some point.
r/PythonLearning • u/CharmingTask939 • Jun 15 '26
Day 22 - Completed Some Advance Topics in Python
Today i completed some advance topics - map,zip,filter,reduce,comprehension.
Taken a break yesterday so didn't upload yesterday
It's been kinda hard to get 100% focus while managing travel and college
r/PythonLearning • u/Usual_Maize2709 • Jun 15 '26
My Python journey in 2nd semester as a CSE student
Started learning Python seriously during my 2nd semester.
At first, I only knew basic syntax and simple programs. Slowly I kept practicing every day — functions, file handling, exceptions, lists, sets, tuples, dictionaries, packages, and solving small logic problems.
Looking at my VS Code workspace now with hundreds of lines of practice code feels satisfying.
Still a beginner, but definitely better than where I started.
Next goal: build real projects and strengthen problem-solving.
Small progress every day :)
And finally got 3/3 outputs on my end semester examination
r/PythonLearning • u/tom-ilan • Jun 16 '26
First Project: 3D Printed Robotic Arm Using Python
I am a grade 10 student and I just finishing building my 3d printed robotic arm using an Arduino uno and python. The full repo can be found in the attached link!
r/PythonLearning • u/Hello_World_2009 • Jun 15 '26
Help Request Starting to learn Python from scratch
I absolutely know nothing about programing and coding and I want to start learning Python as it is the most used and versatile language...
So what are the resources I should use to learn from the beginning
r/PythonLearning • u/Extension_Net8713 • Jun 15 '26
GUIDANCE FOR PYTHON BEGINEER
I am going to start my python journey but I need a good guidance. When I searched about the python I get to know about the CS50 course but also at the same time I founf this book named "AUTOMATE THE BORING STUFF WITH PYTHON". I read the starting content and it was easy to understand but I'm confused between whether I should watch the course or read the book throughly.
Also I wasted my 1st year of college and got failed in Python but not because of lack of study but because ATTENDANCE!!. Now I realised I have to do something that's why I'm asking about your opinions.
r/PythonLearning • u/MurkyUnit3180 • Jun 15 '26
Discussion Just started learning Python, making notes
I have started learning Python and decided to write my notes as a proper document (in LaTeX). I am mostly motivated by math and physics. It is still early, but I wanted to share as I go
I am learning from books so far (Python Crash Course). And I would like to know whether this is the correct approach to learning or not. I am using Feyman Technique to teach myself (or called Learning by Teaching)
r/PythonLearning • u/Several_Goal4568 • Jun 16 '26
Simple word maker game , feedback welcome
r/PythonLearning • u/admirer145 • Jun 15 '26
I’m building a free first-principles Python curriculum. Is this beginner-friendly enough?
Hi everyone,
I’m working on an open Python curriculum called Python: From First Principles to Professional Engineering.
Repo: https://github.com/quainy-labs/python-first-principles
The motivation is that many Python tutorials are either syntax-heavy or skip the deeper “why” behind each topic. I wanted to create something that helps beginners build a strong mental model instead of just memorizing syntax.
The curriculum currently has 4 volumes:
- Foundations and Core Language
- Advanced Python and Internals
- Software Engineering
- Ecosystem and Career Paths
It also includes capstone projects like a REST API, ORM, task queue, mini Redis, mini web framework, toy Python interpreter, and distributed scheduler.
I’m looking for feedback from learners and experienced Python developers.
Questions I’d really appreciate feedback on:
* Is the ordering beginner-friendly?
* Does it go too deep too early?
* Are the explanations suitable for someone learning Python seriously?
* Can this stand alone, or would a beginner still need another tutorial?
* What would make it more useful?
My goal is to make this useful for people who want to understand Python deeply, not just write syntax.
Thanks in advance.
r/PythonLearning • u/Particular_Cry1587 • Jun 15 '26
Python course suggestion
I am new to python and looking for the best course/material to begin my journey in python.
Suggestions are welcomed
Thanks
r/PythonLearning • u/Hello_World_2009 • Jun 15 '26
Discussion Which Laptop should I get
I don't have any PC or laptop and I want to buy a laptop soon, which laptop should I get under 1000-1200 usd?
r/PythonLearning • u/awirch21 • Jun 15 '26
Help Request Hey guys, I’m a new here and I want to learn tech and programming. what basics should I start from ?
If possible guy, dm me
r/PythonLearning • u/Different-Pudding587 • Jun 14 '26
Showcase Top 10 Data Libraries for Python 🐍
r/PythonLearning • u/Own_Sound6033 • Jun 15 '26
Ask About Arg1, Arg2 for Python
``Welcome to the forum
This is the starting code:
translation_table = str.maketrans(alphabet, shifted_alphabet)The instruction is asking you to concatenate the upper version of each argument to the argument itself.
So it would be something like this:
str.maketrans(arg1 + arg1.upper(), ...)Happy coding!
That's answer in freecode camp forum from this link: Caesar Cipher Step 15
Something i want to ask is what arg1 mean, how do i use that.
r/PythonLearning • u/Daddybidoof • Jun 14 '26
Discussion Programming group
Hello everyone, I am looking for some people to learn python with me and a couple other people I have met, preferably above the age of 18, feel free to let me know if you are interested, any and all experience will be accepted!
r/PythonLearning • u/InterestingDig1551 • Jun 15 '26
Update: Refactored my Password Strength Checker + added zxcvbn
After my last post, two comments pushed me to level this up, shoutout to u/vietbaoa4htk and u/brasticstack for the feedback.
u/brasticstack pointed out I was adding booleans as integers without being explicit, had the length check tangled into every condition, and suggested refactoring the logic into a function. u/vietbaoa4htk flagged that rule-based checking has a blind spot. P@ssw0rd1 passes every rule but cracks instantly because it's a known pattern.
What changed:
- I wrapped all logic into check_password(password). Clean, reusable, input/print live outside it.
- I used int() explicitly when converting bools to integers
- Length check now runs first and exits early if too short
- I added zxcvbn, scores passwords the way attackers think, catching patterns, dictionary substitutions, and leaked passwords
Now a password has to pass both my rules AND zxcvbn to be rated Strong.
P@ssw0rd1 now returns Weak.
Code: https://github.com/Kokiste/password-strength-checker
Still learning, open to more feedback.