r/Python • u/lambdaq • Feb 24 '14
r/Python • u/ElPoussah • Jul 18 '22
Meta What happens with comments ?
Ok, I don't know why programmers don't use comment. 90% of dev I know, don't even write a single comment in their files. And the remaining 10% barely write comments. What the hell happened ?
MIT recommandation is about one comment every 1-4 lines of code. https://web.mit.edu/6.s189/www/handouts/lecture2/comment_examples.pdf
So what is the problem with comments guys ?
r/Python • u/Alexander_Selkirk • Jan 28 '21
Discussion leontrolski - OO in Python is mostly pointless
leontrolski.github.ior/Python • u/Fabri10000 • Apr 13 '25
Resource Every Python Built-in Method Explained
Hi there, I just wanted to know more about Python and I had this crazy idea about knowing every built-in feature... let's start by methods. Hope you learn sth new. Take it as an informative video with that purpose.
r/Python • u/CommunicationTop7620 • Mar 24 '25
Discussion Gunicorn for production?
Still using Gunicorn in production or are you switching to new alternatives? If so, why? I have not tried some of the other options: https://www.deployhq.com/blog/python-application-servers-in-2025-from-wsgi-to-modern-asgi-solutions
r/Python • u/[deleted] • May 28 '25
Discussion WOW, python is GREAT!
Spent like a year now bouncing between various languages, primarily C and JS, and finally sat down like two hours ago to try python. As a result of bouncing around so much, after about a year I'm left at square zero (literally) in programming skills essentially. So, trying to properly learn now with python. These are the two programs I've written so far, very basic, but fun to write for me.
Calc.py
import sys
version = 'Pycalc version 0.1! Order: Operand-Number 1-Number 2!'
if "--version" in sys.argv:
print(version)
exit()
print("Enter the operand (+, -, *, /)")
z = input()
print("Enter number 1:")
x = float(input())
print("Enter number 2:")
y = float(input())
if z == "+":
print(x + y)
elif z == "-":
print(x - y)
elif z == "*":
print(x * y)
elif z == "/":
print(x / y)
else:
print("Please try again.")
as well as another
Guesser.py
import random
x = random.randint(1, 10)
tries = 0
print("I'm thinking of a number between 1 and 10. You have 3 tries.")
while tries < 3:
guess = int(input("Your guess: "))
if guess == x:
print("Great job! You win!")
break
else:
tries += 1
print("Nope, try again!")
if tries == 3:
print(f"Sorry, you lose. The correct answer was {x}.")
What are some simple programs I'll still learn stuff from but are within reason for my current level? Thanks!
r/Python • u/LordOmbro • Jun 14 '24
Showcase I made an MMORPG with Python & Telegram in 4 weeks
well, kind of.
I made Pilgram, an infinite idle RPG where your character goes on adventures and notifies you when stuff happens.
What my project does
The bot provides a text interface with wich you can "play" an MMO RPG, it's basically an online idle adventure game
Target audience
It's a toy project that i made out of boredom, also it sounded cool
Comparison
I never heard of anything like this except for some really old browser games. Maybe i'm just not informed.
More info
How is it infinite? The secret is AI. Every quest and event in the game is generated by AI depending on the demand of the players, so in theory you can go on an infinite amount of quests.
Why did i call it an MMO? Because you can kind of play with your friends by creating & joining guilds and by sending gifts to eachother. There even is a guild leaderboard to see who gets the most points :)
The interface is exclusively text based, but the command interpreter i wrote is pretty easy to integrate in other places, even in GUIs if anyone wants to try.
I tried out a lot of new things for this project, like using ORMs, writing unit tests (don't look at those, i kinda got bored after a short while), using AI & writing generic enough code that it can be swapped with any other implementation. I think most of the code i wrote is pretty ok, but you can tell me what to change & what to improve if you want.
Links
here's the link to the code: https://github.com/SudoOmbro/pilgram
if you wanna try out the version i'm running on my server start a conversation with pilgram_bot on Telegram, don't expect a balanced experience at first since that was kind of the last of my problems lol
r/Python • u/Unlucky_Street_60 • Sep 27 '25
Showcase Python script to download Reddit posts/comments with media
What My Project Does
It saves Reddit posts and comments locally along with any attached media like images, videos and gifs.
Target Audience
Anyone who want to download Reddit posts and comments
Comparison
Many such scripts already exists, but most of them require either auth or don't download attached media. This is a simple script which saves the post and comments locally along with the attached media without requiring any sort of auth it uses the post's json data which can be viewed by adding .json at the end of the post url (example link only works in browser: https://www.reddit.com/r/Python/comments/1nroxvz/python_script_to_download_reddit_postscomments.json).
r/Python • u/pthnmaster • Jul 19 '25
Discussion Hello everyone....
Hello everyone, I am 17 years old, I am studying my last year of high school, at first I was thinking of going into accounting, but I like programming more so I am thinking of going into Data Sciences, I am starting to program in python, I follow the udemy course taught by Federico Garay, at times, it seems a little challenging, I am only seeing polymorphisms in the object-oriented programming part, any recommendations?
r/Python • u/ManikSingh2560 • May 14 '20
I Made This Made a very simple program to spam YouTube video captions on WhatsApp using selenium and YouTube transcripts. Takes the name and the YouTube link as input.
r/Python • u/brandonjschwartz • Feb 07 '13
Google Gives 15,000 Raspberry Pi Computer Boards to UK Students
Interesting boost to helping new coders learn Python.
r/Python • u/code_x_7777 • Jul 04 '18
5 Cheat Sheets Every Python Coder Must Own
blog.finxter.comr/Python • u/hackflow • Mar 26 '23
Intermediate Showcase How to Ban 1+N in Django
I always thought of 1+N as a thing that you just keep in your head, catch on code reviews or via performance regressions. But preventing it might be a good idea too.
r/Python • u/alicedu06 • Mar 28 '23
Tutorial Relieving your Python packaging pain
r/Python • u/shekhuu • May 18 '24
Showcase FastAPI Backend Template for SaaS products
Hello there, I just created a template for creating a backend for your SaaS products.
What my project does: It is a FastAPI project/template for creating SaaS backends and admin dashboards.
Comparison:
Out of the box, it supports
Licence key generation and validation.
OAuth 2 authentication with scopes.
Endpoints with pagination and filters to easily integrate with an admin dashboard.
Passwords are securely stored using hashing.
used PostgreSQL for database
Target Audience: Production
Update 1: Added pre-commit hooks, tox for testing and linting.
r/Python • u/ahmedbesbes • Oct 28 '21
Tutorial 18 Common Python Anti-Patterns I Wish I Had Known Before
r/Python • u/DanKveed • Oct 08 '19
Actually it's performance not speed but that don't fit😅
r/Python • u/cubiclegraffiti • Aug 17 '12
Python — It’s Classy! (But you already knew that...)
r/Python • u/watterssn • Aug 01 '15
Learn Python Strings Using Spaced Repetition
r/Python • u/kaizen_____ • Nov 10 '23
Resource Walmart SDE-2 Round 1 experience (India)
Currently working at VMware (1.5 yrs)
Merge 2 sorted LinkedLists (bruteforce, optimal approach, dry run with hand) Python list comprehension Python Internals Numpy, Pandas usage Complex SQL join operations React.js component lifecycle Discussion on a project that I mentioned in the resume
r/Python • u/EnvironmentalMap5 • Feb 26 '21