All posts

Tag

#python

6 posts

AI co-authored

Solving FizzBuzz in Python and JavaScript

FizzBuzz in Python and JavaScript, why interviewers still ask it, and what a clean solution looks like in each language.

  • programming
  • javascript
  • python
  • interview
AI co-authored

Is a string an anagram?

Two approaches to the classic anagram interview question — sorting and character counting — implemented in both Python and JavaScript.

  • python
  • programming
  • interview
AI co-authored

Using Python requests

Making HTTP requests in Python with the requests library — GET and POST, query strings, headers, JSON payloads and handling the response.

  • python
  • programming
  • devops
AI co-authored

Using Python logging

Replace print statements with Python's logging module: verbosity levels, handlers, formatters, and sending log output where you actually need it.

  • devops
  • python
  • programming
AI co-authored

Using Python argparse

How to parse command line arguments in Python with argparse, including the improvements Python 3.11 brought to the module.

  • python
  • programming
  • devops