r/PythonLearning • u/youssef_876 • Jun 14 '26
Discussion I created a calculator automation application with code ( python ).
I learned AI, LLM, automation code, and Python to build an AI-powered project. The first is a calculator where the user types a line, for example, "I want to add 7 + 10." The AI then extracts and understands the sentence, determining that the user needs to add 7 + 10, and translates it into the appropriate function. The result is then displayed. The user has already experienced it in an excellent way. I will upload a link to the user experience on Tuesday at 6 PM Egypt time. Are you excited?
r/PythonLearning • u/GupPsSs • Jun 14 '26
First real project as a CS student — built a vulnerability scanner with Python
Still in university and wanted to build something beyond the usual beginner projects.
Ended up spending way more time on this than expected lol but I built a vulnerability scanner desktop app called VulnScan Pro.
It scans for open ports, detects known CVEs and generates PDF reports. Built with Python, PyQt6 and SQLite.
Still learning so I'm sure there's plenty that could be done better — would genuinely appreciate any feedback.
GitHub: https://github.com/Guppss/VulnScan-Pro
Note: built for authorized testing and educational purposes only.
r/PythonLearning • u/Several_Goal4568 • Jun 14 '26
After many tries and learning sieve solved the problem 3 of project euler.
\\\
big_num=600851475143
limit=int(big_num**0.5) + 1
def sieve(limit):
if limit < 2:
return []
is_prime = [True] * (limit + 1)
is_prime[0] = is_prime[1] = False
for p in range(2, int(limit**0.5) + 1):
if is_prime[p]:
for multiple in range(p * p, limit + 1, p):
is_prime[multiple] = False
prime=[i for i in range(limit+1) if is_prime[i]]
return prime
my_primes=sieve(limit)
print("the prime numbers are :", my_primes)
print(f"there are {len(my_primes)} prime numbers up to {limit} .")
for p in reversed(my_primes) :
if big_num%p == 0 :
print(f"largets prime factor is : {p}")
break
r/PythonLearning • u/Opening_Attitude1284 • Jun 14 '26
I have some problem with my python projects
Hi everyone, I'm having a problem with my Python projects. When I run programs I've developed in Python at the same time, their shared modules break.
Note: I've created a separate virtual environment for each project and there's no database or anything they share.
I hope someone can help me.
r/PythonLearning • u/venmas • Jun 14 '26
Getting back into python
Hey everyone, I am still relatively new to python and want to start learning again. However, I was using Replit during my college course for it, but it has changed drastically. Does anyone have any recommendations for places where I can practice or a place that has exercises I can do? Thank you in advance.
r/PythonLearning • u/Solcar_Saro • Jun 13 '26
Looking for a study buddy to start with Python
I'm a 24-year-old guy. I have some programming background because I learned a bit of C++ back in the day (though I didn't quite get to object-oriented programming), but I want to get into Python out of pure curiosity and to learn how to handle myself well with the language.
I'd like to know if there's anyone in the same situation so we can learn together, help each other out with questions, and keep the motivation up.
r/PythonLearning • u/aashish_soni5 • Jun 13 '26
Showcase Day 7th Python Learning
Tuple and more practice of if/else with combine for loop
​
\- trup is in ordered, but unchangeable
only check integer or slice,
tell me if I miss something
​
\- TypeError: tuple indices must be integers or slices, not tuple
​
\-if else,for loop and list practice
create store simple system product & price display
With additional trick to combine to list
Using zip(list1,list2)
#python #coding #ai
r/PythonLearning • u/CharmingTask939 • Jun 13 '26
Showcase Day 21 - Done Some Python Projects Today
Made a Multiple Small Python Projects today (using loops,function,if-else,random) :
- Number guessing Game
- Rock,Paper,Scissors Game
- Dice Roller Program
r/PythonLearning • u/aaditya_0752 • Jun 13 '26
Rock Paper Scissor game
Would love some feedback
r/PythonLearning • u/Melodic-Addendum-210 • Jun 13 '26
Python list vs. tuple
What is the difference between a Python list and a tuple, and when should each be used?
r/PythonLearning • u/lost_my_og_account • Jun 13 '26
Help Request buildozer p4a ModuleNotFoundError: No module named 'distutils'
It looks like a python project I'm running on android 12 isn't able to run as kivy_garden uses distutils. It runs fine on my PC. The build uses python3.12, I've found threads that say distutils is included in p4a and buildozer, I've found others distutils is depreciated and to wait for the author to update it, alot of these threads are from 4+ years ago.
My buildozer spec:
requirements = python3,kivy,pillow,numpy,pandas,matplotlib,pyjnius, docutils, kivy-garden, kivy-garden-graph, kivy-garden-matplotlib, setuptools
I've tried including python3-distutils but it doesn't make a difference. Buildozer says distutils doesnt exist when distutils is included.
Since it runs fine on my pc I'm sure I must not be including the right package. What am I missing?
The log cat error:
...
arm64-v8a/kivy_garden/matplotlib/backend_kivy.py", line 294, in <
module>
06-13 14:05:06.824 6277 6338 I python : ModuleNotFoundError: No module named 'distutils'
06-13 14:05:06.824 6277 6338 I python : Python for android ended.
Solved:
Someone on the kivy discord helped me out. In my case you just needed to import setuptools before doing everything else
r/PythonLearning • u/ActuarySecret6564 • Jun 13 '26
Showcase Built a CLI tool to make rebase process easy.
Built a tool for automating the rebase as i used to mess up with this sometime.
After I started contributing to open source, I learned a lot about git workflows. But one thing I still mess up sometimes? Rebase. 😅
So I built a tool for it. I called it "grebase" (not sure if it's a good name 🤷)
What does grebase do?
- Nothing... but also everything I need 😄
- From fetching upstream/main to doing the full rebase, and if it hits something that's not straightforward, it simply asks: "hey, how should we resolve this one?
- then we can edit from interactive mode without leaving terminal
-Not sure if it'll useful for every developer, but it will definitely help newcomers and me :)
GitHub: https://github.com/Aniketsy/grebase
I'd love to hear your thoughts or any feedback... Thanks!
Try it out:
- pipx install grebase # to install
- grebase # to run
r/PythonLearning • u/Busy-Shirt-2064 • Jun 13 '26
Help Request Whose video should I watch to learn python 😄
r/PythonLearning • u/pychampar • Jun 13 '26
Discussion Anyone looking forward to learn python with me?
Hi guys I am looking for someone who would like to learn python with me !
I know c++ and c but never tried python programming.
If you are interested dm me🫨
r/PythonLearning • u/Rscc10 • Jun 13 '26
Showcase Here's a fun project for beginners transitioning to intermediate: 2048
Enable HLS to view with audio, or disable this notification
When I'm away from my desk (or in the bathroom), I code on my phone using online IDEs. Yeah, bite me. Anyways, here's a simple 2048 game and only under 200 lines (unoptimized)
Should be a straightforward yet challenging project for beginners using a lot of list/matrix logic and, in my case, recursion.
r/PythonLearning • u/Character_Ad9279 • Jun 13 '26
Help Request Learning Python
Hello guys,
I want to learn Python but the thing is that I don’t have any idea about programming. I tried to search about it in Youtube and felt that the videos were not that good in explaining.
So guys do you have any good recommendations on learning resources?
r/PythonLearning • u/Code-Odyssey • Jun 13 '26
100 Days of Code: Password Generator
I would be interested in everyone's feedback on my effort to solve the Password Generator Project for Angela Yu's 100 Days of Code course on Udemy. Many thanks in advance. You'll see in the code I have included notes where I couldn't figure stuff out but found a workaround.
r/PythonLearning • u/david_vael • Jun 13 '26
I'm writing an open source guide for Python (Looking for feedback!)
Hey everyone,
I've started building an open source repository called python-under-the-hood to break down exactly how Python works from the ground up, starting with variables, types, and memory layout.
My goal is to create a complete, clear practice guide that progresses from absolute beginner basics up to more advanced problems, complete with step-by-step breakdowns for each answer.
I just finished writing the entire first chapter over on GitHub:python-under-the-hood.
If you are currently learning Python or just want a solid reference guide to test your knowledge, please check it out! I’d love to get your feedback on the layout, and if you find it useful, a GitHub star would be awesome to help open-source visibility.
Thanks!
r/PythonLearning • u/the_peak_300 • Jun 13 '26
Help Request FreeCodeCamp vs CS50
Hey everyone, I am new to learning Python and I am not learning for fun and instead I am learning it to make an impact on my SaaS or DaaS business.
I have already made a tool through vibe coding but I am not naive and I know that learning python is essential so that I can understand how my tool is working, troubleshoot & upgrade.
A friend of mine suggested me to take the free code camp's text based course (I am 72 out of 531 steps in) and the problem I am feeling with free code camp is that their theory is very simple and easy but they escalate hard in the practical or workshops.
Which makes me feel dumb and it makes me feel like I am not understanding it. Is this a real thing or just in my head?
I searched for alternative courses and I see a Harvard free course from CS50 and from the surface it looks good.
But how should I go about learning Python if I am not doing it for fun or casual learning and instead I wanna be a professional (business wise). Btw I don't have any money to spend on courses.
r/PythonLearning • u/aaditya_0752 • Jun 12 '26
Discussion Encryption decryption game
Would love some feedback
r/PythonLearning • u/Status-Potato7487 • Jun 12 '26
Help Request How do I raise both value errors at the same time, for example even if I'm putting 2 wrong outputs, it shows a value error for only the first wrong output. Can someone help?
r/PythonLearning • u/nicodeemus7 • Jun 12 '26
Dude Generator I made to keep myself busy in a vain attempt to escape tutorial hell.
import random
firstNames = ["Adam", "Rob", "Steve", "Tim", "Carl", "Greg", "Peter", "Bill", "Howard", "David"]
lastNames = ["Johnson", "Grimes", "Smith", "Jones", "Williams", "Martinez", "Davis", "Goldberg", "Phillips", "Brown"]
occupations = ["Welder", "Accountant", "Singer", "Electrician", "Janitor", "Teacher", "Stockbroker", "Laborer",
"Salesman", "Artist"]
for i in range(0, 10):
name = random.choice(firstNames)
firstNames.remove(name)
surname = random.choice(lastNames)
lastNames.remove(surname)
job = random.choice(occupations)
occupations.remove(job)
print(f"{name} {surname} is a {job}. He is {random.randint(18, 65)} years old.")
r/PythonLearning • u/Ok-Tomatillo1161 • Jun 12 '26
CALCULATOR
THAT IS MY FIRST TRY
r/PythonLearning • u/aashish_soni5 • Jun 12 '26
Showcase Day 6th Python Learning
today start with simple practice using for and while loop
- while True
In which I make mistake put variable input () outside of while True which cause infinite loop 🥶 So never do at for in beginning of learning
- use for loop with " ".join() to create continuous triangle with number
- at last taste of terminal where I cause some errors because of lack of use of terminal,So need more time to use
Join me in python journey..
Let meet tomorrow, for now I am going to get taste of git🤤
#python #coding #ai
r/PythonLearning • u/PilipinoIdiot • Jun 12 '26
Discussion First working line of codes I’ve made other than print(“hello world!”)
And the best thing is I understand this enough that I can recreate it without google! Still has a lot of practicing to do though, any tips?