r/Python • • Feb 24 '14

One of the most used python tool is a >2k LoC monolith with tons of code snippets embedded directly with base64

Thumbnail
github.com
2 Upvotes

r/Python • • Jul 18 '22

Meta What happens with comments ?

2 Upvotes

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 • • Jan 28 '21

Discussion leontrolski - OO in Python is mostly pointless

Thumbnail leontrolski.github.io
2 Upvotes

r/Python • • Apr 13 '25

Resource Every Python Built-in Method Explained

0 Upvotes

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.

Here's the explanation


r/Python • • Mar 24 '25

Discussion Gunicorn for production?

0 Upvotes

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 • • May 28 '25

Discussion WOW, python is GREAT!

0 Upvotes

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 • • Jun 14 '24

Showcase I made an MMORPG with Python & Telegram in 4 weeks

86 Upvotes

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 • • Sep 27 '25

Showcase Python script to download Reddit posts/comments with media

1 Upvotes

Github link

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 • • Jul 19 '25

Discussion Hello everyone....

0 Upvotes

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 • • 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.

0 Upvotes

r/Python • • Feb 07 '13

Google Gives 15,000 Raspberry Pi Computer Boards to UK Students

0 Upvotes

Interesting boost to helping new coders learn Python.


r/Python • • Apr 30 '18

Python Environment

Post image
1 Upvotes

r/Python • • Jul 04 '18

5 Cheat Sheets Every Python Coder Must Own

Thumbnail blog.finxter.com
0 Upvotes

r/Python • • Mar 26 '23

Intermediate Showcase How to Ban 1+N in Django

0 Upvotes

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.

Read more


r/Python • • Mar 28 '23

Tutorial Relieving your Python packaging pain

Thumbnail
bitecode.substack.com
1 Upvotes

r/Python • • May 18 '24

Showcase FastAPI Backend Template for SaaS products

0 Upvotes

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

  1. Licence key generation and validation.

  2. OAuth 2 authentication with scopes.

  3. Endpoints with pagination and filters to easily integrate with an admin dashboard.

  4. Passwords are securely stored using hashing.

  5. used PostgreSQL for database

Target Audience: Production

Check it here!

Update 1: Added pre-commit hooks, tox for testing and linting.


r/Python • • Oct 28 '21

Tutorial 18 Common Python Anti-Patterns I Wish I Had Known Before

Thumbnail
towardsdatascience.com
0 Upvotes

r/Python • • Oct 08 '19

Actually it's performance not speed but that don't fit😅

Post image
1 Upvotes

r/Python • • Aug 17 '12

Python — It’s Classy! (But you already knew that...)

Thumbnail
blog.lightcastletech.com
0 Upvotes

r/Python • • May 28 '09

$ django

Thumbnail blag.whit537.org
0 Upvotes

r/Python • • Aug 01 '15

Learn Python Strings Using Spaced Repetition

Thumbnail
shortcutfoo.com
0 Upvotes

r/Python • • Feb 13 '09

Why Java is stupid (and should be depricated, haha..)

Thumbnail
timvalenta.wordpress.com
0 Upvotes

r/Python • • Nov 10 '23

Resource Walmart SDE-2 Round 1 experience (India)

1 Upvotes

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 • • Feb 26 '21

Tutorial some facts about the for loop in python

Thumbnail
youtu.be
1 Upvotes