r/Python • u/esc28 • Jul 02 '20
r/Python • u/mrgadgety • Apr 22 '20
I Made This Six months into Python and Data science, my first Dashboard Web App with covid19 data using python only
r/Python • u/Ofirk • Mar 03 '20
I Made This I made this script to find the optimal person to be traded for camels
r/Python • u/azidified • Apr 18 '20
I Made This I wrote a script that creates a password wordlist based on the information you provide about the person.
r/Python • u/SilkTouchm • Oct 07 '20
Discussion Anyone else uses the Python interpreter as a calculator?
It's just so comfy.
r/Python • u/M4D4R4G0D • Jun 28 '20
I Made This I was able to install and use Jupyter Notebook on my Android smartphone! (Through the terminal and without using root access)
r/Python • u/easylifeforme • Aug 30 '19
My school's business analytics course is taught in python. This is their textbook!
r/Python • u/Gedanke • Jul 03 '19
Using Python to find a prime number that looks like the python logo (or any other image) from far away [OC]
r/Python • u/to_tgo • Feb 21 '21
Resource An Interactive Python Cheat Sheet That Brings The Answer To You
After realizing that I spent far too much time looking things up while coding, I decided to solve the problem and created this...
The Python SpeedSheet: https://speedsheet.io/s/python
It is an interactive cheat sheet that brings the answer to you. It is a really simple idea but it worked so well that it has become an indispensable tool for me any time I'm coding. Type in what you are looking for in the search bar and the speed sheet will display the answer.
It covers core Python only and I'm sure it is missing 'must have' items but I think it is still very useful.
To those of you viewing this on smaller screens, I apologize. I haven't had time to streamline the UI.
Here is a video to show you how it works:
https://www.youtube.com/watch?v=66RumAF50_4
Try it out and let me know what you think.
TLDR:
This is an interactive cheat sheet for core Python.
r/Python • u/TenekeKutu_07 • Jul 23 '20
I Made This My 3D Shooter game using only pygame!
r/Python • u/lhad89 • Jan 11 '20
I wrote a little python package to render images as continuous lines with varying thicknesses using matplotlib
r/Python • u/WigglytufTehPink • May 31 '20
I Made This I created the first cross-platform Python library to create native context menus!
r/Python • u/insane_playzYT • Aug 08 '20
Discussion Post all of your beginner projects to r/MadeInPython, this sub is being overrun with them
r/madeinpython is a subreddit specifically for what you want; posting your projects. No one wants to see them here. This subreddit is genuinely one of the lowest quality programming subreddits on the site because of the amount of beginner project showcases.
r/learnpython is also much more appropriate than here. r/Python should be a place to discuss Python, post things about Python, not beginner projects.
r/Python • u/diddilydiddilyhey • Sep 03 '19
I used reinforcement learning with python to solve Numberphile's "cat and mouse" game!
r/Python • u/Narthal • May 02 '20
Discussion My experience learning Python as a c++ developer
First off, Python is absolutely insane, not in a bad way, mind you, but it's just crazy to me. It's amazing and kind of confusing, but crazy none the less.
Recently I had to integrate Python as a scripting language into a large c++ project and though I should get to know the language first. And let me tell you, it's simply magical.
"I can add properties to classes dynamically? And delete them?" "Functions don't even care about the number of arguments?" "Need to do something? There's a library for that."
It's absolutely crazy. And I love it. I have to be honest, the most amazing about this is how easy it is to embed.
I could give Python the project's memory allocator and the interpreter immediately uses the main memory pool of the project. I could redirect the interpreter's stdout / stderr channels to the project as well. Extending the language and exposing c++ functions are a breeze.
Python essentially supercharges c++.
Now, I'm not going to change my preference of c/c++ any time soon, but I just had to make a post about how nicely Python works as a scripting language in a c++ project. Cheers
r/Python • u/DaFluffyPotato • Feb 25 '19
I Made This I just finished a 48 hour game jam using Python and Pygame! (Source in comments.)
r/Python • u/GreyRhinos • Jul 13 '20
Meta Guys do not name your variable of type dictionary as myDict/mydict during your whiteboard interviews!
Maybe I am the only idiot who has done something like this but I just wanted to share my embarrassing interview experience. Let's cut it to the chase, so I had this video interview where I was given a question and a shared editor. I decided to use a dictionary for my solution (one of my favorite ds) and named the variable as myDict. While I was explaining my logic, I made sure I was emphasizing the letter 't' whenever I pronounced myDict (so that it doesn't sound like my_dick). Anyway, while I was typing the solution and explaining, obviously, my brain started concentrating on the code and I wasn't paying much attention to what I was saying. Apparently, my pronunciation started sounding like 'my dick'. On top of that, I was using that dick so much to the point that interviewer started laughing. Imagine when you are explaining the space complexity and you say something along the lines 'the size of myDict is proportional to the size of input array'. Anyone else has done something embarrassing like this?
EDIT: embracing == embarrassing
r/Python • u/euphinx_ • Jun 02 '20
I Made This I made a coding interview site with video conferencing, collaborative code editing and remote code execution.
r/Python • u/AlSweigart • Dec 01 '20
Resource "Automate the Boring Stuff with Python" online course is free to sign up for the next few days with code DEC2020FREE
https://inventwithpython.com/automateudemy (This link will automatically redirect you to the latest discount code.)
You can also click this link or manually enter the code: DEC2020FREE
https://www.udemy.com/course/automate/?couponCode=DEC2020FREE
This promo code works until the 4th (I can't extend it past that). Sometimes it takes an hour or so for the code to become active just after I create it, so if it doesn't work, go ahead and try again a while later. I'll change it to DEC2020FREE2 on the 4th.
Udemy has changed their coupon policies, and I'm now only allowed to make 3 coupon codes each month with several restrictions. Hence why each code only lasts 3 days. I won't be able to make codes after this period, but I will be making free codes next month. Meanwhile, the first 15 of the course's 50 videos are free on YouTube.
You can also purchase the course at a discount using my code DEC2020 or clicking https://inventwithpython.com/automateudemy to redirect to the latest discount code. I have to manually renew this each month (until I get that automation script done). And the cheapest I can offer the course is about $16 to $18. (Meanwhile, this lets Udemy undercut my discount by offering it for $12, and I don't get the credit for those referral signups. Blerg.)
Frequently Asked Questions: (read this before posting questions)
This course is for beginners and assumes no previous programming experience, but the second half is useful for experienced programmers who want to learn about various third-party Python modules.
If you don't have time to take the course now, that's fine. Signing up gives you lifetime access so you can work on it at your own pace.
This Udemy course covers roughly the same content as the 1st edition book (the book has a little bit more, but all the basics are covered in the online course), which you can read for free online at https://inventwithpython.com
The 2nd edition of Automate the Boring Stuff with Python is free online: https://automatetheboringstuff.com/2e/
I do plan on updating the Udemy course for the second edition, but it'll take a while because I have other book projects I'm working on. Expect that update to happen in mid-2021. If you sign up for this Udemy course, you'll get the updated content automatically once I finish it. It won't be a separate course.
It's totally fine to start on the first edition and then read the second edition later. I'll be writing a blog post to guide first edition readers to the parts of the second edition they should read.
I wrote a blog post to cover what's new in the second edition
You're not too old to learn to code. You don't need to be "good at math" to be good at coding.
Signing up is the first step. Actually finishing the course is the next. :) There are several ways to get/stay motivated. I suggest getting a "gym buddy" to learn with.
r/Python • u/[deleted] • May 08 '18
Backdoor in ssh-decorator package
Do not install or use the ssh-decorator package from Pip. It has a backdoor inserted to steal all your SSH credentials. I've already contacted the developer to take it out. He hasn't responded so for now, use at your own risk! https://ibb.co/kdDk67
UPDATE: The compromised package has been taken down now.

r/Python • u/anyfactor • Nov 01 '20
Discussion [RANT] Clients telling me "I know python" is a major red flag to me
I do freelance python development in mainly web scraping, automation, building very simple Flask APIs, simple Vue frontend and more or less doing what I like to call "general-purpose programming".
Now, I am reasonably skilled in python, I believe. Don't write OOP and class-based python unless I am doing more than 100 lines of code. Most often write pretty simple stuff but most of the time goes into problem-solving.
But I despise freelancing. 1 out of every 3 comments/posts I make on Reddit is how much I hate doing freelancing. I come to Reddit to vent so I am sorry to the fellas who is reading this because they are more or less my punching bag :( I am sorry sir/madam. I am just having a bad life, it will end soon.
So, today I am going to rant about one of the more ""fun"" things of freelancing, client telling me they know python.
Whenever a client tells me that they know python, I try to ignore them but often times I have to entertain the idea anyway because jobs are scarce. I keep telling myself "maybe this will work out great" but it doesn't.
It never goes right. Here is the thing. If you do what I do you will realize the code is often quite simple. Most of the effort goes into problem-solving. So when the client sees the code and me getting paid by the hour, "They are like I thought you are best darn python developer I could have written that myself!"
My immediate impulse is to go on a rant and call that person something rotten. But I have to maintain "professionalism".
Then there is the issue of budgeting. I do fixed payment contracts for smaller engagements. But oftentimes these python experts will quote me something that is at least one-fourth of a reasonable budget. And by reasonable I mean non-US reasonable budget which is already one-fifth of a reasonable US programming project budget. But anyway they quote that because they know how is easy it is to do my job.
There is more because this is rant by the way. So, clients with python knowledge will say to me "I have this python file..." which is the worst thing to say at this point. They think they have done the "majority" of the work. But here is the way I see it-
a. Either they have just barely scratched the surface b. They have a jumbled up mess c. They had another dev look into the project who already failed d. They had to do a "code review" of their previous freelancer and they ended up stealing the code
There is no positive way to imagine this problem. I have seen too much crappy code and too much of arguments like "they had done the work for me, so I should charge near to nothing".
People don't know exactly why senior devs get paid so much money. Junior devs write code, senior devs review code. That is why they get paid more. Making sense of other people's code is a risky and frustrating thing and it could be incredibly time-consuming. And moreover in most cases building upon a codebase is more difficult than writing it from the scratch.
Doctors rant about "expert" patients earning their MDs from WebMD and I am seeing the exact same thing happen to me with clients knowing how to write loops in python.
Python is easy to learn, programming these days is easy to learn. But people are not paying programmers for writing loops and if statements. They are paying them to solve problems. Knowing the alphabet doesn't make you a poet. And yes in my eyes programming is poetry.