Blog Category: CODE đŸ„·

ACSL Junior Asterisks Problem
My Python solution for the ACSL Junior Division 2002-2003 Contest 1 Problem Asterisks. Includes the problem solving logic and Python code tips.... continue reading
{ updated: 2024-10-27 18:31:27 }
Python Program to Find Repeated Numbers That Are Perfect Squares
Algorithm and Python program to find repeated numbers that are perfect squares. Examples of repeated numbers are 123123 and 3434.... continue reading
{ updated: 2024-10-06 04:42:09 }
ACSL Junior Wrap Around Code Problem
My Python solution for the ACSL Junior Division 2001-2002 Contest 1 Problem Wrap Around Code. Includes the problem solving logic and Python code tips.... continue reading
{ updated: 2024-10-02 04:39:23 }
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-09-30 12:36:04 }
Python Code to Generate k-digit Number With k As Each Digit
In this Python snippet, we will use different string and math numeric operations to generate a k-digit number where each digit has the value k.... continue reading
{ updated: 2024-09-16 19:56:36 }
Codeforces osu!mania Problem in Python and C++
My Python and C++ solutions for the Codeforces osu!mania problem 2009B. Includes the problem solving logic and speed benchmarks.... continue reading
{ updated: 2024-09-07 23:22:55 }
Codeforces Three Brothers Problem in Python and C++
My Python and C++ solutions for the Codeforces Three Brothers problem 2010B. Includes the problem solving logic and speed benchmarks.... continue reading
{ updated: 2024-09-03 23:44:01 }
How to Generate Random Numbers in Python
Blog post about how to generate random numbers in Python using various methods. Uses random and secret modules.... continue reading
{ updated: 2024-08-30 01:37:14 }
Codeforces Maximum Multiple Sum Problem in Python and C++
My Python and C++ solutions for the Codeforces Maximum Multiple Sum problem 1985A. Includes the problem solving logic and speed benchmarks.... continue reading
{ updated: 2024-08-29 20:47:43 }
How to Break a Python List into Sublists or Slices
Learn how to break a Python list into a list of lists or tuples using itertools.batched, list comprehension, slicing and for loops with append.... continue reading
{ updated: 2024-08-27 22:41:04 }
How to Automate Facebook Posts to Page using Python and Graph API
Tutorial on posting to your Facebook page using Python and Graph API v19. This includes increasing your access token lifetime from 2 months to indefinitely.... continue reading
{ updated: 2024-08-27 03:01:05 }
Python Program to Generate Large Datasets
Generate large datasets with randomly generated values. Uses the `csv`, `json` and `random` Python modules and does not depend on any external file or database.... continue reading
{ updated: 2024-07-30 23:59:59 }
Asynchronous Programming with httpx
Article on how to get started with Python httpx module, an alternative to the requests module. httpx supports both synchronous and asynchronous HTTP requests.... continue reading
{ updated: 2024-07-30 23:59:59 }
Benchmarking Local and Global Variables, and List Comprehension in Python
How to benchmark the execution speed of local and global variables, and list comprehension.... continue reading
{ updated: 2024-07-30 23:59:59 }
ACSL Intermediate Number Transformation Problem
My Python solution for the ACSL Intermediate Problem Number Transformation in 2019-2020. Includes the problem solving logic and Python code tips.... continue reading
{ updated: 2024-06-25 00:01:01 }
ACSL Junior Numble Problem
My Python solution for the ACSL Junior Division 2013-2014 Contest 4 Problem Numble. Includes the problem solving logic and Python code tips.... continue reading
{ updated: 2024-06-24 00:01:01 }
ACSL Junior Finals Run-Length Encoding Problem
My Python solution for the ACSL Junior Division 2023-2024 Finals #1 Problem Run-Length Encoding. Includes the problem solving logic and Python code tips.... continue reading
{ updated: 2024-06-15 23:59:59 }
Codeforces Yogurt Sale Problem in Python and C++
My Python and C++ solutions for the Codeforces Yogurt Sale problem 1955A. Includes the problem solving logic and speed benchmarks.... continue reading
{ updated: 2024-05-08 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 00:01:01 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
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 23:59:59 }
Perl and MySQL using DBI
Perl script to retrieve data from MySQL using the DBI module... continue reading
{ updated: 2010-03-06 23:59:59 }