r/Python • • Jun 08 '20

I Made This Snake 4d - 4 spatial dimension game

2.7k Upvotes

r/Python • • Nov 19 '21

Resource PrettyErrors, a module to format exception reports

Post image
2.7k Upvotes

r/Python • • Jul 24 '20

I Made This A Command Line Stock Dashboard

Post image
2.6k Upvotes

r/Python • • Jan 01 '19

These two books changed my life in 2018!

Post image
2.6k Upvotes

r/Python • • Jul 03 '20

Meta Happy 4th of July from Chicago

Post image
2.6k Upvotes

r/Python • • May 07 '20

I Made This I created my first app, "Timeglass", a simple, unobtrusive menu bar timer for macOS.

Post image
2.6k Upvotes

r/Python • • May 18 '21

Resource Embedded Python: Build a Game on the BBC micro:bit – Real Python

Thumbnail
realpython.com
2.6k Upvotes

r/Python • • Jun 06 '23

Discussion Going dark on 12th June

2.5k Upvotes

I wanted to ask you if r/Python is planning to join the protest against Reddit's new policy. Many subreddits decided to support that initiative. I know it is not directly related to Python, but it is relevant to our community

what's going on?


r/Python • • Jun 06 '20

I Made This I created a GUI that collates various interests of mine in one handy place

Post image
2.5k Upvotes

r/Python • • Aug 06 '20

Intermediate Showcase White Cuts Across Black Background - an effect achieved through good use of the Python Image Library

2.5k Upvotes

r/Python • • May 13 '20

I Made This With my limited knowledge in Python, I wrote a simple script to control my motorized microscope from a keyboard. All instructions are open-source. Just wanted to share with this community for possible comments and suggestions for further improvements.

2.5k Upvotes

r/Python • • Feb 17 '19

Lil cheatsheet

Post image
2.5k Upvotes

r/Python • • Jan 20 '21

Resource I made a course on NumPy. It got good reviews, but sales were weak so I'm releasing the entire thing for free.

2.5k Upvotes

My course is called Python NumPy For Your Grandma - So easy your grandma could learn it. Here's the course outline.

  1. Introduction
    1.1 Introduction

  2. Basic Array Stuff
    2.1 NumPy Array Motivation
    2.2 NumPy Array Basics
    2.3 Creating NumPy Arrays
    2.4 Indexing 1-D Arrays
    2.5 Indexing Multidimensional Arrays
    2.6 Basic Math On Arrays
    2.7 Challenge: High School Reunion
    2.8 Challenge: Gold Miner
    2.9 Challenge: Chic-fil-A

  3. Intermediate Array Stuff
    3.1 Broadcasting
    3.2 newaxis
    3.3 reshape()
    3.4 Boolean Indexing
    3.5 nan
    3.6 infinity
    3.7 random
    3.8 Challenge: Love Distance
    3.9 Challenge: Professor Prick
    3.10 Challenge: Psycho Parent

  4. Common Operations
    4.1 where()
    4.2 Math Functions
    4.3 all() and any()
    4.4 concatenate()
    4.5 Stacking
    4.6 Sorting
    4.7 unique()
    4.8 Challenge: Movie Ratings
    4.9 Challenge: Big Fish
    4.10 Challenge: Taco Truck

  5. Advanced Array Stuff
    5.1 Advanced Array Indexing
    5.2 View vs Copy
    5.3 Challenge: Population Verification
    5.4 Challenge: Prime Locations
    5.5 Challenge: The Game of Doors
    5.6 Challenge: Peanut Butter

  6. Final Boss
    6.1 as_strided()
    6.2 einsum()
    6.3 Challenge: One-Hot-Encoding
    6.4 Challenge: Cumulative Rainfall
    6.5 Challenge: Table Tennis
    6.6 Challenge: Where's Waldo
    6.7 Challenge: Outer Product

If you find this useful, please consider liking my videos and subscribing to my YouTube channel.

Also, stay posted for my next course, Python Pandas For Your Grandpa.

UPDATE since this post blew up.

  1. After >1 year of having a YouTube channel, I had 59 subscribers. I posted this 16 hours ago and now I have 325 subscribers and counting. Two people even purchased my course. Like, what!?!? Thank you!

  2. Please stay posted for my next course Python Pandas For Your Grandpa. It's nearly finished after months of work, and the production quality is much better.

UPDATE 2
My course on Pandas has been released! (View on YouTube)


r/Python • • Jul 28 '21

Discussion Hello, world! I'm Al Sweigart, author of "Automate the Boring Stuff with Python" and several other programming books. AMA!

2.5k Upvotes

Howdy, y'all. I'm Al Sweigart (rhymes with "why dirt"), author of "Automate the Boring Stuff with Python" and several other programming books. I release all of my books under a Creative Commons license, so you can read them for free on my website at https://inventwithpython.com

My latest books are The Big Book of Small Python Projects and Beyond the Basic Stuff with Python. I'm currently working on a book about recursion (the recursion jokes get funnier every time I hear them) which should be available in 2022. The ideas for this book grew into a 2018 North Bay Python talk I gave.

"Big Book" contains the source code for 81 games, puzzles, simulations, and animations that were designed to be short and simple to understand. Folks tend to get caught up in repeating yet another "hello world" tutorial, but don't quite know how to apply the programming concepts they learned into actual programs. This book is full of source code that they can study to see how real-world programs work. They aren't just code snippets but actual, runnable programs. If you've been told you should "work on your projects" but don't know where to start, or if you've been told "look at the source code of open source projects" but found them undocumented and inscrutable, check out these programs.

"Beyond the Basic Stuff" is a sort of follow up to "Automate the Boring Stuff" (or any other beginner Python resource). It goes into how professionals write code and best practices they follow. There's information on how to find help on your own, how to format your code and name your variables, an explanation of common programming jargon, the basics of Git, three chapters on object-oriented programming (and more importantly, when and why to use OOP), and more.

You've probably seen my posts at the start of the month when I make my online Python course free. About 15,000 to 30,000 people sign up each month, though according to my stats only about 5% of people actually complete the course (which is typical for online courses, free or paid).

I got started writing programming books in 2009 when my then-girlfriend was a nanny for kid who wanted to learn to program. I started writing a book (which would become Invent Your Own Computer Games with Python) and self-published. People liked it, so I kept writing, and Automate was my first book through a traditional publisher, No Starch Press. I quit my software developer job in 2013 to finish writing Automate, thinking I'd get another software dev job in a year. But I kept having more ideas for other books, tutorials, videos, etc. so I'm still here writing.

Ask me anything! Post your questions and upvote questions you find interesting, and at 2pm central I'll begin replying.

EDIT (4:30pm Central) Wow, I've been typing nonstop for two and a half hours. I'm going to take a quick break and then keep going. Thanks for the questions, everyone!

EDIT 2: Oh yeah, I forgot to mention I'm also creating a 56-video Udemy course for the Beyond the Basic Stuff with Python book as well. So far I only have the first 15 videos done, but you can watch them on YouTube.

EDIT (7:00pm) Heh, wow another two hours flew by. I'm going to drive home and then maybe answer a few more. Thanks again, everyone!

EDIT (10:30pm) Calling it a night. I'll probably answer a few more tomorrow, but I have to get back to work. Thanks again, everyone! Oh, and if you can help me out, writing an (honest) Amazon review for my books (especially the latest two) or even just sharing the links to the free online copies would be really help me get them in front of more people.


r/Python • • May 21 '20

I Made This Spotlightify - a overlay controller for spotify, allowing you to quickly control your music without distraction. Please let me know if you are interested in this application as I am thinking of making it public on my github in the near future (once more features have been developed), thanks!

2.5k Upvotes

r/Python • • Jan 03 '20

I wrote a python script that I'm running on my phone to play a word game called Ruzzle.

2.5k Upvotes

r/Python • • Jul 04 '20

I Made This Started learning python today, Screw 'Hello World' , I'll start with 'Hello There'

Post image
2.5k Upvotes

r/Python • • Apr 30 '18

xkcd: Python Environment

Post image
2.4k Upvotes

r/Python • • 5d ago Regret

News Tim Peters has passed away

2.4k Upvotes

Tim died July 15, at his home in Ashland, Wisconsin. He was 74. We don't know any specifics yet.

In case you don't know who Tim Peters is, he was an early pioneer in helping shape the Python language and its runtime. He invented a new sorting algorithm ("Timsort"); a descendent of it ("PowerSort") is still used in Python today, as well as in Java, and several Javascript runtimes (Chrome, Node). He dashed off The Zen Of Python in response to a Usenet post asking about best practices. So many things in Python are directly due to Tim. Online, he was funny, charming, helpful, and had a depth of knowledge and wisdom that was frankly unmatched. He'll be missed.

https://www.bratleyfamilyfuneralhomes.com/obituary/timothy-peters


r/Python • • Jan 22 '20

Work laptop doesn't allow minesweeper? I'm gonna build my own minesweeper, with blackjack, and hookers! In fact, forget the hookers!

2.4k Upvotes

r/Python • • Jan 30 '21

Tutorial I created a video about Neural Networks that is specifically aimed at Python developers! If you understand the Code, you understand how to create a Neural Network from Scratch! The video took me 200h to create and is fully animated! Hope it helps you guys :)

Thumbnail
youtube.com
2.4k Upvotes

r/Python • • Jun 23 '20

I Made This Wrote a script that downloads r/wallpaper's hottest 100 images and cycles through them as a wallpaper!

2.4k Upvotes

r/Python • • Jan 25 '21

Resource My startup failed, so I open sourced the code. I hope someone finds it useful.

Thumbnail
github.com
2.4k Upvotes

r/Python • • Feb 20 '21

News Happy birthday, Python, you're 30 years old today: Easy to learn, and the right tool at the right time

Thumbnail
theregister.com
2.4k Upvotes