Search Results for tag python

Found 34 results
How to install Python 3.12.2 on Debian 11 bullseye
Tutorial on installing Python 3.12.2 on Debian 11 bullseye from source. This involves configure, make and altinstall ... read more
{ updated: 2024-03-02 }
USACO Palindrome Game Problem
My Python solution for the USACO February 2024 Bronze Division "Palindrome Game" problem. Includes the problem solving logic. ... read more
{ updated: 2024-02-27 }
Codeforces Moving Chips Problem in Python and C++
My Python and C++ solutions for the Codeforces "Moving Chips" problem 1923A. Includes the problem solving logic and speed benchmarks. ... read more
{ updated: 2024-02-24 }
How to Install Python 3.12.2 on the Raspberry Pi
Tutorial on how to Install Python 3.12.2 on the Raspberry Pi. This will be updated whenever there is a new version or Python or Raspberry Pi OS (Raspbian). ... read more
{ updated: 2024-02-08 }
How to install Python 3.12.2 from source
Tutorial on how to install Python 3.12.2 from source. configure, make, make install. Useful for Debian, Ubuntu, Fedora, Red Hat and other Linux systems. ... read more
{ updated: 2024-02-08 }
Codeforces Make it White Problem in Python and C++
My Python and C++ solutions for the Codeforces "Make it White" problem 1927A. Includes the problem solving logic and speed benchmarks. ... read more
{ updated: 2024-02-06 }
USACO Cow College Problem
My Python solution for the USACO December 2022 Bronze Division "Cow College" problem. Includes the problem solving logic. ... read more
{ updated: 2024-02-03 }
Codeforces Brick Wall Problem in Python and C++
My Python and C++ solutions for the Codeforces "Brick Wall" problem 1918A. Includes the problem solving logic and speed benchmarks. ... read more
{ updated: 2024-01-31 }
Codeforces Fafa and the Gates Problem in Python and C++
My Python and C++ solutions for the Codeforces "Fafa and the Gates" problem 935B. Includes the problem solving logic and speed benchmarks. ... read more
{ updated: 2024-01-29 }
ACSL String Stats Problem
My Python solutions for the ACSL Junior Division 2018-2019 Programming Problem "String Stats". Includes the problem solving logic. ... read more
{ updated: 2024-01-28 }
Codeforces Bark to Unlock Problem in Python and C++
My Python and C++ solutions for the Codeforces Bark to Unlock problem 868A. Includes the problem solving logic and speed benchmarks. ... read more
{ updated: 2024-01-27 }
Codeforces Key Races Problem in Python and C++
My Python and C++ solutions for the Codeforces Key Races problem 835A. Includes the problem solving logic and speed benchmarks. ... read more
{ updated: 2024-01-26 }
How to access and update environment variables in Python
This article shows you how to set, retrieve and modify environment variables using Python. Python uses the os.environ module for handling environment variables. ... read more
{ updated: 2024-01-25 }
Convert Binary, Octal, Decimal and Hexadecimal Numbers using Python
How to convert between the four number systems - binary, octal, decimal and hexadecimal using Python. bin(), oct(), hex(), int() functions. ... read more
{ updated: 2024-01-24 }
Python Underscore _ Variable
Learn about the underscore variable in Python and where it is used. It is used as an ignore variable. Underscores are also used in variable names and reserved method names. ... read more
{ updated: 2024-01-20 }
Asynchronous Programming with httpx
Article on how to get started with Python httpx module, an alternative to the requests module. httpx is a modern library and has support for HTTP/1.1 and HTTP/2. It also supports both synchronous and asynchronous HTTP requests. ... read more
{ updated: 2024-01-11 }
Sending Asynchronous Requests in Python with asyncio and aiohttp
Tutorial on how to send asynchronous HTTP requests using the asynchio and aiohttp modules in Python 3.10 and greater. This code is different from that of previous versions. ... read more
{ updated: 2024-01-10 }
Benchmarking Local and Global Variables, and List Comprehension in Python
Blog post on benchmarking the execution speed of local and global variables, and list comprehension. TL;DR list comprehension is fastest, followed by local variables and then global variables. ... read more
{ updated: 2024-01-03 }
Generate Random Data using Python
Article on how to generate various types of random data using Python. In our examples we will use Python 3.12, but any Python above 3.6 should do. ... read more
{ updated: 2024-01-02 }
Python Program to Generate Large Datasets
This is a Python script to generate large datasets with randomly generated values. This program does not use Pandas or Numpy. It uses the `csv`, `json` and `random` Python modules and does not depend on any external file or database. ... read more
{ updated: 2024-01-01 }
Python One-Liners to Make your Programs More Efficient
Python one-liners to make your programs more efficient and concise. ... read more
{ updated: 2023-12-26 }
How to Enable HSTS in Nginx, Apache, Flask, NodeJS
This blog post shows how to enable HSTS in Nginx, Apache, Flask and NodeJS. ... read more
{ updated: 2023-12-09 }
Web Controllable Christmas Lights using Raspberry Pi and RGB LED Strip
Web controllable Christmas lights using Raspberry Pi and RGB LED strip. You can change the LED strip colours. ... read more
{ updated: 2023-10-23 }
ACSL Junior Division
Blog post about how to coach your ACSL Junior Division club. This is our fourth year coaching ACSL and second year coaching ACSL Junior Division ... read more
{ updated: 2023-10-13 }
Python for Kids: a 30-Day Roadmap
This blog post is about a rough timeline on how to teach Python to kids. This includes a list of topics to teach core Python for school age. The suggested Python version is 3.10 and above, preferably the latest 3.11.5. ... read more
{ updated: 2023-10-13 }
How to install Python packages offline
This tutorial shows you how to install Python packages if your computer is offline or the firewall prevents connection to pypi.org. ... read more
{ updated: 2023-02-26 }
Python script to tweet your Internet speed
This is a Python program that tweets your Internet speed to your Twitter account. ... read more
{ updated: 2022-10-13 }
American Computer Science League (ACSL)
This is a blog post about tips on how to coach your ACSL club and make learning fun for your students. ... read more
{ updated: 2022-09-22 }
Python script to submit URLs to Bing search engine
Python program to bulk submit URLs to Bing search engine. This uses the Submission API provided by Bing Webmaster Tools. ... read more
{ updated: 2022-07-26 }
Install Visual Studio Code for Python development
Tutorial on how to install Visual Studio Code for development in Python. This includes installing of plugins. ... read more
{ updated: 2022-06-22 }
Working with JSON in Python
How to work with JSON in Python using the json module. Includes serialization and deserialization, dumps() and loads() ... read more
{ updated: 2022-05-30 }
ACSL Intermediate Division
Blog post about how to coach your ACSL Intermediate Division club. ... read more
{ updated: 2022-01-27 }
Python script to show live video using RTSP
Python script that connects to a Wyze camera and streams live video on RTSP. ... read more
{ updated: 2021-09-22 }