r/pythontips • • Sep 02 '21

Syntax Learn Python through Nursery Rhymes and Fairy Tales (book)

38 Upvotes

Hey everyone, I thought of the idea for Learn Python through Nursery Rhymes and Fairy Tales when I realized that nursery rhymes and fairy tales could be written logically as Python programs. This book translates the classic stories into Python programs and teaches new programming concepts as it explains the code. I think people's familiarity with the stories makes the programs more fun and easier to understand.

The programs cover all the Python basics from variables to classes. It's also illustrated like a traditional storybook. I'm working with an artist on the illustrations that accompany the programs. I launched the book on Kickstarter:

https://www.kickstarter.com/projects/914595512/learn-python-through-nursery-rhymes-and-fairy-tales

The sample pages on the site show part of Goldilocks and the Three Bears and The Muffin Man written as Python programs. I’d love to hear any feedback you have!


r/pythontips • • Jul 26 '21

Python3_Specific How to create simple telegram bot in Python hosted on Heroku

38 Upvotes

Hey, guys

I have created a tutorial on how to create an introductory telegram bot and host in on Heroku on a free tier: https://dspyt.com/simple-telegram-bot-in-python-hosted-easily-on-heroku/


r/pythontips • • Sep 01 '20

Long_video Scanning Networks with Python and Nmap - Python Penetration Testing

38 Upvotes

In this video walkthrough, we have created and assembled a python script to perform information gathering on the network. The script enumerates for lives hosts, identifies open ports, the running services, and the corresponding services. This script can be used when you don't have Nmap or you can't install it.

Video is here


r/pythontips • • Jul 13 '20

Python3_Specific “Understand python DONT just remember it”

38 Upvotes

I don’t understand this why people always say “Know why youre typing the code, dont just remember the code” but how do i know what to type if i dont remember the code? o.O


r/pythontips • • Jul 10 '20

Long_video Gnubesoft: The Second Best Internet Security in Python Tutorial

38 Upvotes

This is a follow-up to my last video. In this video I build a custom, and comprehensive, encryption solution that meets HIPAA and NIST compliance for our Asynchronous Websockets app.

https://youtu.be/ct3Gq6ksDGY

If you missed it, you should watch Part 1 first: https://youtu.be/35OH6w1GbY8


r/pythontips • • Apr 15 '20

Build a weather app in Python and Tkinter

38 Upvotes

Build a weather app in Python and Tkinter

https://www.youtube.com/watch?v=7JoMTQgdxg0


r/pythontips • • Jan 30 '20

Python Command line

38 Upvotes

To catch any syntax errors before executing large time consuming scripts you can run the following from your command line

python3 -m py_compile my_script.py


r/pythontips • • Jan 09 '26

Python3_Specific I built a wrapper to get unlimited free access to GPT-4o, Gemini 2.5, and Llama 3 (16k+ reqs/day)

37 Upvotes

Hey everyone!

I wanted to share a tool I built called FreeFlow LLM (freeflow-llm)

Like many of you, I love using powerful models like GPT-4o and Llama 3.3, but I hate hitting rate limits or paying for API usage during development/testing. I noticed that providers like Groq, Google (Gemini), and GitHub Models offer really generous free tiers, but managing multiple keys and switching between them when one runs out is a pain.

So I built FreeFlow to automate it.

What it does

It acts as a unified API layer. You just toss in a list of free API keys (e.g., 2 Groq keys, 3 Gemini keys), and FreeFlow handles the rest:

  • Auto-Rotation: Cycles through keys to avoid rate limits.

  • Auto-Fallback: If Groq is down or limited, it seamlessly switches to Gemini or GitHub Models.

  • Unified Interface: One simple client.chat()  method that works for all providers.

  • Streaming: Full support for real-time response streaming.

Installation

pip install freeflow-llm

from freeflow_llm import FreeFlowClient

# It automatically finds your keys in env vars
with FreeFlowClient() as client:
    response = client.chat(
        messages=[{"role": "user", "content": "Explain quantum computing"}]
    )
    print(response.content)

Links


r/pythontips • • Nov 07 '23

Data_Science Are there any good Python coding side hustles?

37 Upvotes

I have a little over 2 years of experience in Python coding. Python all I have experience in and I'm willing to build up on the knowledge I have already to become an effective side hustling programmer.


r/pythontips • • Mar 02 '23

Short_Video [WIP] drag-and-drop UI builder inside VS Code

37 Upvotes

https://youtu.be/zbAjFIha3vE

hey everyone, excited to share a bit more on the drag’n drop UI builder VS Code extension for Python we're building :)

skips the need to code HTML, CSS, frameworks etc. in order to deploy a web app. also the idea is to pair the familiar coding environment of VS Code with a visual way to build UI.

it's still a work in progress - beta launch soon - but since this is a learning community, i would love to know what you think!


r/pythontips • • May 05 '21

Module University First Assignment/

37 Upvotes

So I am exactly 2 days into a intro to programming course. So far we have not done any coding. We haven't talked about syntax, regular expressions, if, while, or anything such as this (i did java a few years back so im familiar with these things vaguely). However the professor assigns us this:

Develop an algorithm to determine the numbers of “Regular” and “Urgent” customer support requests stored in a queue. Specify the Algorithm using a flowchart. The number of requests in the queue is assumed to be a positive integer Q, provided as input.   

Hint: Reading a request from a queue would reveal its type (“Regular” or “Urgent”). One may assume the queue to be populated with requests beforehand. Alternatively, one may populate the queue at the beginning of the algorithm with requests whose types are randomly assigned to be “Urgent” or “Regular”

We just downloaded pycharm and python so this came out of the blue. We havent even learned if statements of while statements yet. Its been two days...

Any ideas as to how to go about this question?


r/pythontips • • Apr 20 '21

Short_Video Why Python is special - Palindrome Function

37 Upvotes

What's interesting about python as a language, is its easy syntax and simple rules.

As an example, I wrote this short palindrome function

https://www.youtube.com/watch?v=y8IV9bYoZBc

What do you think, can we make this function shorter? (in terms of number of characters used :))

(I am aware that it's runtime is not optimal, which is another topic)


r/pythontips • • Mar 27 '21

Python3_Specific Python String lstrip() and rstrip() Functions [with Coding Examples]

37 Upvotes

Python has two methods lstrip() and rstrip() used to remove the whitespaces and characters from the left and right of a String. Read more...


r/pythontips • • Jun 28 '20

Long_video Ever wonder how to write your own programming language?

37 Upvotes

In this episode of Console we write a lexer in Python, the first step in writing your own programming language!

https://www.youtube.com/watch?v=tPgm2b9FFQU


r/pythontips • • May 18 '20

Meta [Humble Bundle] Python books

37 Upvotes

r/pythontips • • Mar 03 '20

Do I need a better laptop to practice python?

37 Upvotes

I want to learn how to use python and coding. I have a simple laptop, that has 8GB ram, Intel i-3 core, and 120 storage. Do i need a better laptop to practice or more space?


r/pythontips • • Dec 10 '19

Breast Cancer Classification with Deep Learning - Amazing Python Project

37 Upvotes

If you want to master Python programming language then you can’t skip projects in Python. After publishing 4 advanced python projects, DataFlair today came with another one that is the Breast Cancer Classification project in Python. To crack your next Python Interview, practice these projects thoroughly and if you face any confusion, do comment, DataFlair is always ready to help you.

Before we begin this Breast Cancer Classification Project in Python, let me provide you the list of advanced python projects published by DataFlair:

  1. Fake News Detection Python Project 

  2. Parkinson’s Disease Detection Python Project 

  3. Speech Emotion Recognition Python Project 

  4. Breast Cancer Classification Python Project

  5. Age and Gender Detection Python Project 

  6. Driver Drowsiness Detection Python Project

  7. Traffic Signs Recognition Python Project

  8. Image Caption Generator Python Project

Breast Cancer Classification Project in Python

Get aware with the terms used in Breast Cancer Classification project in Python

What is Deep Learning?

An intensive approach to Machine Learning, Deep Learning is inspired by the workings of the human brain and its biological neural networks. Architectures as deep neural networks, recurrent neural networks, convolutional neural networks, and deep belief networks are made of multiple layers for the data to pass through before finally producing the output. Deep Learning serves to improve AI and make many of its applications possible; it is applied to many such fields of computer vision, speech recognition, natural language processing, audio recognition, and drug design.

What is Keras?

Keras is an open-source neural-network library written in Python. It is a high-level API and can run on top of TensorFlow, CNTK, and Theano. Keras is all about enabling fast experimentation and prototyping while running seamlessly on CPU and GPU. It is user-friendly, modular, and extensible.

Breast Cancer Classification – Objective

To build a breast cancer classifier on an IDC dataset that can accurately classify a histology image as benign or malignant. Read More


r/pythontips • • Sep 16 '19

Python IDE and code editors tools

37 Upvotes

r/pythontips • • Jun 01 '19

Simple Guide to Python Logging

37 Upvotes

Printing stuff is useful. But is it enough?

In this video, I try to throw light on situations where it is advantageous to use Python Logging over print.
Check it out here.


r/pythontips • • Jun 02 '16

Syntax Swapping variables using unpacking

37 Upvotes

Swap two variables without needing to create a temporary variable

a, b = 1, 2
a, b = b, a

a, b  #(2, 1)

r/pythontips • • Mar 22 '23

Python3_Specific Handling Files In Python - Opening, Reading & Writing

36 Upvotes

Files are used to store information, and when we need to access the information, we open the file and read or modify it. We can use the GUI to perform these operations in our systems.

Many programming languages include methods and functions for managing, reading, and even modifying file data. Python is one of the programming languages that can handle files.

We'll look at how to handle files, which includes the methods and operations for reading and writing files, as well as other methods for working with files in Python. We'll also make a project to adopt a pet and save the entry in the file.

Here's the guide to performing different operations on the file👇👇

Handling Files In Python - Opening, Reading & Writing


r/pythontips • • Nov 29 '22

Module I made a package to get free tested proxies fast

36 Upvotes

This post is for those who are getting blocked again and again while web scrapping, and need free tested proxies now.

I made a python package named Ballyregan, which allows you to get free valid proxies SUPER FAST (214 proxies / 30s ) easily. You can specify the proxies anonymity (elite, transparent, etc...) and protocol ( http, https, socks4, socks5 ).

Check it out:

https://github.com/idandaniel/ballyregan

Will appreciate your feedback and even your star ⭐

Hope it helped you!


r/pythontips • • Mar 13 '22

Meta what are your most used packages for general development?

36 Upvotes

I found 'black' and 'isort'. they are not big packages but very nice to have.


r/pythontips • • Dec 16 '21

Long_video The Modern Python 3 Bootcamp - 200 Exercises and Quizzes

36 Upvotes

<iframe width="560" height="315" src="[https://www.youtube.com/embed/vxIt7QtBCPQ](https://www.youtube.com/embed/vxIt7QtBCPQ)" title="YouTube video player" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>