Archives
All the articles I've archived.
-
Counting CamelCase Words: A Step-by-Step Python Function
Published: at 05:51 PMLearn to count words in CamelCase strings with Python. Simple function, detailed explanation, and practical examples. Master strings, lists, and 'isupper' to improve your Python code. Come in and discover how!
-
Convert Decimal to Hexadecimal in Python: A Step-by-Step Guide
Published: at 07:32 PMLearn how to convert decimal numbers to hexadecimal in Python using list comprehensions, dictionaries, and operators. Examples and easy-to-understand code!
-
Tree Growth: Cycles, Height and Calculation with Python
Published: at 09:13 PMCalculate the final height of a tree with growth cycles in spring and summer using Python. Learn about iteration, variables and the modulo operator.
-
Divisors of a Number: Find and Count (Python Examples)
Published: at 10:24 PMLearn to count the divisors of a number with Python. Discover a step-by-step method using sets and loops. Optimize your code and improve your understanding of divisors! Practical examples included.
-
Check if a Number is Odd with Python: Step-by-Step Guide
Published: at 09:42 AMLearn how to determine if a number is odd in Python using the modulo operator and functions. Includes examples and best practices like docstrings for clear code.
-
Overcome Obstacles: Calculate Potions with Python (Jump Obstacles)
Published: at 08:52 AMLearn how to calculate how many potions your character needs to overcome obstacles in Python. Use list comprehensions and ternary operators for an efficient solution.
-
Anagrams: Detect if two words are equal when reordered
Published: at 08:51 PMLearn to detect anagrams in Python. Discover how to compare words ignoring case and spaces, and verify if they are rearrangements of the same string.
-
Capicúas and Products: Find the Largest with Python
Published: at 05:55 PMDiscover how to find the largest capicua product within a range using Python. Learn about palindromes, dictionaries, and loop optimization.
-
Fast Prime Factorization: Find the Smallest Prime Factor
Published: at 05:07 PMDiscover how to efficiently find the smallest prime factor of a number. Optimization, prime factorization, and fast algorithms for results in <0.1s.
-
Kaprekar Numbers: Discover if a number is magic (Python)
Published: at 06:09 PMLearn to identify Kaprekar numbers in Python. Explore slicing, ternary operators, and type conversion to solve this mathematical challenge. Discover how it works!
-
Find Similarities: Intersection of Arrays in Python
Published: at 09:48 AMDiscover how to find the common features between two arrays in Python, ideal for data analysis and object recognition. Optimize your code with sets!
-
Counting Mountains with Python: Lists, Iterators, and Conditionals
Published: at 10:04 AMLearn to count mountains climbed by an alpinist using Python. Discover how lists, iterators, and conditionals simplify the analysis of complex routes. Practical examples and clear explanations for efficient code.
-
Proportion of Numbers: Positive, Negative, and Zeros in Python
Published: at 10:21 PMLearn how to calculate the proportion of positive, negative, and zero numbers in a Python array. Step-by-step guide with example and optimized code to improve your skills.
-
Robot Sensor: Circular Memory Control with Python
Published: at 09:13 PMLearn to control a sensor-equipped robot in Python. Implement circular memory, arithmetic operations, and boundary handling to simulate its behavior. Code included!
-
Compound Interest in Python: Function, Calculation and Examples
Published: at 08:00 PMLearn how to calculate compound interest in Python with a simple function. Includes practical examples, the formula and rounding of results. Optimize your investments with Python.
-
Calculate Damage in Games: Formula, Python and SEO Optimization
Published: at 07:38 PMLearn how to calculate damage in games with Python. Implement the attack, defense and effectiveness formula. Rounding, dictionaries and more. Optimize your game!
-
Find the Minimum in an Array: A Step-by-Step Guide
Published: at 07:12 AMLearn how to find the minimum value in an array of integers with this easy-to-follow guide. Iteration, comparison, and update explained. Optimize your code!
-
Quick Range Sum: Optimization with Arithmetic Series
Published: at 06:01 PMCalculates the sum of a range of numbers (start to end) in O(1) time using the arithmetic series formula. Optimize your code and get instant results!
-
Decimal to Binary: Convert Numbers with Python (Step by Step)
Published: at 06:22 PMLearn how to convert decimal numbers to binary in Python. Clear guide with examples, using integer division, remainders, and type conversion. Easy and fast!
-
Maximum Coincident Height: Cylinders and Sets in Python
Published: at 09:01 PMFind the maximum height where stacks of cylinders coincide using Python. Use sets, iteration, and cumulative sums to solve this programming challenge. Optimize your code!
-
Calculate Your Fintech Credit: Commission, VAT, and Amount to Request
Published: at 06:00 PMFind out how much you should request from a Fintech to cover your debts and the opening commission (5% + 16% VAT). Calculate your ideal credit easily!
-
GCD of an Array: Efficient Calculation with Python and Functions
Published: at 05:47 PMLearn how to calculate the Greatest Common Divisor (GCD) of an array of numbers in Python. Use higher-order functions, the math module, and optimize with iteration and accumulation.
-
Prime Function in Python: Optimization and Divisibility
Published: at 09:20 PMLearn how to create an efficient function in Python to determine if a number is prime. Optimization, divisibility, iteration, and early return explained. Code example included!
-
Class Cancelled: Lambda and Filter for Attendance Control
Published: at 03:02 PMAvoid class cancellations using Lambda and Filter in Python. Learn to count on-time students with higher-order functions and conditional expressions. Improve your code now!
-
Counting Elements in a Python List: A Step-by-Step Guide
Published: at 04:15 PMLearn how to easily count the number of elements in a Python list. Discover how to create functions with docstrings and metadata for clean and efficient code.
-
Even Function in Python: Check if a Number is Even
Published: at 06:25 PMLearn how to create a function in Python to determine if a number is even using the modulo operator. Includes examples and good practices with docstrings.
-
Difference of Diagonals in Matrices: A Step-by-Step Guide
Published: at 10:06 PMLearn how to calculate the difference between the main and secondary diagonals of a square matrix in this tutorial. Examples and clear explanation!
-
Rounding Multiples of 5: Python, Lists and Operators
Published: at 10:46 PMLearn how to round integers to multiples of 5 in Python. Use lists, ternary operators and modular logic to optimize rounding and meet minimum requirements.
-
Between Sets: LCM, GCD and Python for Magic Numbers
Published: at 02:47 PMDiscover how to use LCM, GCD, reduce and lambda in Python to find special numbers between two sets. Learn step by step with examples and code. Optimize your code and understand the logic behind this problem!
-
Lychrel Numbers: Detect if a Number Never Becomes a Palindrome
Published: at 07:29 PMDiscover what Lychrel numbers are and how to detect them with Python. Learn to use slicing, iteration, and type conversion to solve this numerical challenge.
-
Formatting Seconds to hh:mm:ss in Python: A Step-by-Step Guide
Published: at 10:56 AMLearn how to convert seconds to a human-readable time format (hh:mm:ss) in Python. Use modulo operators, integer division, and f-strings for an efficient and clear solution.