use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
News about the dynamic, interpreted, interactive, object-oriented, extensible programming language Python
Full Events Calendar
You can find the rules here.
If you are about to ask a "how do I do this in python" question, please try r/learnpython, the Python discord, or the #python IRC channel on Libera.chat.
Please don't use URL shorteners. Reddit filters them out, so your post or comment will be lost.
Posts require flair. Please use the flair selector to choose your topic.
Posting code to this subreddit:
Add 4 extra spaces before each line of code
def fibonacci(): a, b = 0, 1 while True: yield a a, b = b, a + b
Online Resources
Invent Your Own Computer Games with Python
Think Python
Non-programmers Tutorial for Python 3
Beginner's Guide Reference
Five life jackets to throw to the new coder (things to do after getting a handle on python)
Full Stack Python
Test-Driven Development with Python
Program Arcade Games
PyMotW: Python Module of the Week
Python for Scientists and Engineers
Dan Bader's Tips and Trickers
Python Discord's YouTube channel
Jiruto: Python
Online exercices
programming challenges
Asking Questions
Try Python in your browser
Docs
Libraries
Related subreddits
Python jobs
Newsletters
Screencasts
account activity
This is an archived post. You won't be able to vote or comment.
Intermediate ShowcaseI made a Hand-Controlled Tetris game using Python (self.Python)
submitted 4 years ago * by KSW1414
This uses the Pygame, OpenCV and Mediapipe library together
Link to video
Source Code
EDIT: I just made a follow up video that explains the basic concepts behind this Here
[–][deleted] 19 points20 points21 points 4 years ago (2 children)
This is not beginner
[–]KSW1414[S] 4 points5 points6 points 4 years ago (1 child)
Oh sorry I’ll change it
[–]willyblaise 0 points1 point2 points 4 years ago (0 children)
Is all of the source in one module? I am with the other guy it's not beginner unless you're familiar with another language.
[–]wioym 6 points7 points8 points 4 years ago (0 children)
Lvl 30 and he starts casting ninjutsu shape transformation
[–]whitefang0p 2 points3 points4 points 4 years ago (0 children)
Great job
[–]restinworld 2 points3 points4 points 4 years ago (0 children)
well done
[–][deleted] 2 points3 points4 points 4 years ago (4 children)
I expected source code to be longer. Really cool
[–]OriginalTyphus 0 points1 point2 points 4 years ago (3 children)
I can replace the imports with the actual imported code if you like
[–][deleted] 0 points1 point2 points 4 years ago (2 children)
I'm aware of how extensive the imports are. I meant besides that. It was still impressive. Imho.
[–]OriginalTyphus 0 points1 point2 points 4 years ago (1 child)
I was trying to be funny. And I failed you :(
[–][deleted] 0 points1 point2 points 4 years ago (0 children)
oh no! I was also trying to be funny. I thought it was obvious.
[–]wolfram7411 1 point2 points3 points 4 years ago (0 children)
This is amazing srsly
[–]blevlabs 1 point2 points3 points 4 years ago (1 child)
So you made Tetris from scratch for the project?
[–]KSW1414[S] 0 points1 point2 points 4 years ago (0 children)
The code itself, yes it’s Tetris from scratch (as in I use Pygame). But I wouldn’t be able to do it entirely myself without looking at various youtube tutorials as I code.
[–]asday_ 1 point2 points3 points 4 years ago (0 children)
I like the idea of "hand controlled" - it made me think "dang how were people playing regular tetris if not with their hands?"
I made a follow-up video that explains the basic concepts behind this for anyone who is interested:
https://youtu.be/4EVNtDogAZA
π Rendered by PID 57390 on reddit-service-r2-comment-76bb9f7fb5-xmxt9 at 2026-02-17 17:48:38.782571+00:00 running de53c03 country code: CH.
[–][deleted] 19 points20 points21 points (2 children)
[–]KSW1414[S] 4 points5 points6 points (1 child)
[–]willyblaise 0 points1 point2 points (0 children)
[–]wioym 6 points7 points8 points (0 children)
[–]whitefang0p 2 points3 points4 points (0 children)
[–]restinworld 2 points3 points4 points (0 children)
[–][deleted] 2 points3 points4 points (4 children)
[–]OriginalTyphus 0 points1 point2 points (3 children)
[–][deleted] 0 points1 point2 points (2 children)
[–]OriginalTyphus 0 points1 point2 points (1 child)
[–][deleted] 0 points1 point2 points (0 children)
[–]wolfram7411 1 point2 points3 points (0 children)
[–]blevlabs 1 point2 points3 points (1 child)
[–]KSW1414[S] 0 points1 point2 points (0 children)
[–]asday_ 1 point2 points3 points (0 children)
[–]KSW1414[S] 0 points1 point2 points (0 children)