Blog Category: CODE đŸ„·

USACO Palindrome Game Problem
My Python solution for the USACO February 2024 Bronze Division "Palindrome Game" problem. Includes the problem solving logic.... continue reading
{ 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.... continue reading
{ updated: 2024-02-24 }
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.... continue reading
{ 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.... continue reading
{ 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.... continue reading
{ 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.... continue reading
{ 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.... continue reading
{ 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.... continue reading
{ 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.... continue reading
{ 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.... continue reading
{ 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.... continue reading
{ 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.... continue reading
{ 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.... continue reading
{ 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.... continue reading
{ 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.... continue reading
{ 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.... continue reading
{ 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.... continue reading
{ updated: 2024-01-01 }
Python One-Liners to Make your Programs More Efficient
Python one-liners to make your programs more efficient and concise.... continue reading
{ updated: 2023-12-26 }
Python script to tweet your Internet speed
This is a Python program that tweets your Internet speed to your Twitter account.... continue reading
{ updated: 2022-10-13 }
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.... continue reading
{ updated: 2022-07-26 }
How to send email from Gmail with PHP
Tutorial on how to send email from a Gmail account using Google's SMTP server and Postfix.... continue reading
{ updated: 2022-06-24 }
Working with JSON in Python
How to work with JSON in Python using the json module. Includes serialization and deserialization, dumps() and loads()... continue reading
{ updated: 2022-05-30 }
Python script to show live video using RTSP
Python script that connects to a Wyze camera and streams live video on RTSP.... continue reading
{ updated: 2021-09-22 }
Perl and MySQL using DBI
Perl script to retrieve data from MySQL using the DBI module... continue reading
{ updated: 2010-03-06 }