kioku-space

As a personal memory space.

Python Interactive Guide - Step 1 Basic Syntax and Data Types (6) - Lists (2)

Info
  • This course, Python Interactive Guide, is designed to help you learn the basics of Python programming through hands-on, interactive examples.
  • The “Style Guide” sections introduce clean coding practices, mainly based on PEP8.
  • You can run and experiment with every code example.
    Feel free to try things out - reloading the page will reset everything.

This is a continuation of “Step 1: Basic Syntax and Data Types”.

Python Interactive Guide - Step 1 Basic Syntax and Data Types (5) - Lists (1)

Info
  • This course, Python Interactive Guide, is designed to help you learn the basics of Python programming through hands-on, interactive examples.
  • The “Style Guide” sections introduce clean coding practices, mainly based on PEP8.
  • You can run and experiment with every code example.
    Feel free to try things out - reloading the page will reset everything.

This is a continuation of “Step 1: Basic Syntax and Data Types”.

I Created EasyBench: A Simple Python Benchmarking Library

I’ve created EasyBench, a benchmarking library that makes it easy to measure execution time of Python functions.

Python already has a standard library called timeit.
However, when actually using it, I encountered the following issues:

  1. Code needs to be input as strings
  2. While there is a setup functionality, it only executes once before the overall process begins,
    and there’s no feature to perform setup immediately before each trial without including it in the measurement time

I was recently writing an introductory Python article and wanted to explain computational complexity by measuring actual execution times to give readers a tangible experience.
However, due to the constraints above, I couldn’t measure as precisely as I wanted,
which led me to develop EasyBench as a more flexible library.

Python Interactive Guide - Step 1 Basic Syntax and Data Types (4) - Variables and Assignment

Info
  • This course, Python Interactive Guide, is designed to help you learn the basics of Python programming through hands-on, interactive examples.
  • The “Style Guide” sections introduce clean coding practices, mainly based on PEP8.
  • You can run and experiment with every code example.
    Feel free to try things out - reloading the page will reset everything.

This is a continuation of “Step 1: Basic Syntax and Data Types”.

Python Interactive Guide - Step 1: Basic Syntax and Data Types (3) - str, bool, None

Info
  • This course, Python Interactive Guide, is designed to help you learn the basics of Python programming through hands-on, interactive examples.
  • The “Style Guide” sections introduce clean coding practices, mainly based on PEP8.
  • You can run and experiment with every code example.
    Feel free to try things out - reloading the page will reset everything.

This is a continuation of “Step 1: Basic Syntax and Data Types”.

Python Interactive Guide - Step 1: Basic Syntax and Data Types (2) - int, float

Info
  • This course, Python Interactive Guide, is designed to help you learn the basics of Python programming through hands-on, interactive examples.
  • The “Style Guide” sections introduce clean coding practices, mainly based on PEP8.
  • You can run and experiment with every code example.
    Feel free to try things out - reloading the page will reset everything.

This is a continuation of “Step 1: Basic Syntax and Data Types”.