Solving FizzBuzz in Python and JavaScript
What is FizzBuzz? FizzBuzz is a simple coding problem used in interviews to test basic programming skills. The task is to print the numbers from 1 to a given number, but print “Fizz” instead if the number is divisible by 3, …
programming javascript python interviewLeveraging Map, Reduce and Filter for Cleaner Code
When working with array data in JavaScript or Python, transforming, combining and filtering that data is a common task. However, using explicit loops every time can make your code messy and hard to understand. Luckily, there are built-in methods for …
programming javascript pythonIs a string an anagram?
An anagram is a word or phrase formed by rearranging the letters of another word or phrase. For example, “elbow” and “below” are anagrams of each other. In coding interviews and programming challenges, you may be asked to …
python programming interviewUsing Python requests
The Python requests module is an elegant and simple HTTP library for making requests in Python. Requests allows you to send HTTP requests extremely easily. No need to manually add query strings to URLs, or form-encode your POST data. Keep-alive and …
python programming devopsUsing Python logging
The logging module in Python provides a standardized way to record diagnostic and runtime information from your programs. The key benefits of logging are the ability to: Log messages with different verbosity levels (debug, info, warning, error) …
devops python programmingUsing Python argparse
Python 3.11 introduced a new and improved argument parser in the argparse module. The new argument parser provides several handy features that make it easier to parse command line arguments in Python scripts. In this post, we’ll take a look at …
python programming devops