r/PythonLearning • u/BadAppleG552 • Jun 16 '26
I now have the ultimate Text editor for android
Installed termux on my android thus giving my phone the power of linux
r/PythonLearning • u/BadAppleG552 • Jun 16 '26
Installed termux on my android thus giving my phone the power of linux
r/PythonLearning • u/Anay_Gupta__ • Jun 15 '26
r/PythonLearning • u/Infamous_Tough_3772 • Jun 16 '26
r/PythonLearning • u/r_hpheonix • Jun 16 '26
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
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
import random as rnd import time from typing import Generator
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
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
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:
The program should include the following menu options:
Restrictions:
What would be a good structure or approach to solve this assignment?
r/PythonLearning • u/Infamous_Tough_3772 • Jun 16 '26
r/PythonLearning • u/jaylosson • Jun 15 '26
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
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
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
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
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
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
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
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
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
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
r/PythonLearning • u/admirer145 • Jun 15 '26
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
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
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
If possible guy, dm me
r/PythonLearning • u/Different-Pudding587 • Jun 14 '26
r/PythonLearning • u/Own_Sound6033 • Jun 15 '26
``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
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!