Online · Minato · Tokyo

Online Robotics Classes for Expat Kids in Minato-ku, Tokyo

Online robotics classes for expat kids in Minato-ku, Tokyo help international-school households explore sensors, motors and control logic through live English sessions—without inventing a private Minato campus.

Robotics Minato

Video coming soon

Lesson notes and Q&A below are available now. The video will appear here when published.

1. Introduction: From Functions to Modules

In previous topics, functions were introduced as modular units of code designed to perform specific tasks. While functions organize small segments of logic, real-world software and artificial intelligence applications require structuring much larger portions of code.

In Python, larger code collections are organized into modules:

  • Function: Packages a small segment of logic for reuse within a program.
  • Module: A dedicated file containing tested, well-designed Python code (functions, variables, and classes) that can be imported and utilized across multiple programs.

One of Python’s greatest advantages over older programming languages is its massive ecosystem of pre-built modules and libraries. Especially in Artificial Intelligence (AI), Python provides extensive built-in and open-source modules that eliminate the need to write complex algorithms from scratch.

2. Common Built-In Python Modules

Python comes bundled with a standard library of pre-installed modules, including:

  • math — Provides comprehensive mathematical functions (such as square roots and trigonometry).
  • random — Generates pseudo-random numbers and random selections.
  • os — Facilitates direct interaction with the operating system and file system paths.

To use any module, Python provides the import keyword.

3. Method 1: Importing an Entire Module

To make an entire module and all of its functions accessible within your file, use the import keyword followed by the module name:

import math

Calling Module Functions: The Dot Operator (.)

When an entire module is imported, you access its functions by writing the module name, followed by the dot operator (.), followed by the function name:

import math

# Calculating the square root of 16
result = math.sqrt(16)
print(result)

Output:

4.0

Why the Dot Operator Matters (Namespace Protection)

  • Avoiding Naming Collisions: You could write your own custom function named sqrt() inside your script.
  • If you call sqrt(16), Python executes your locally defined function.
  • If you write math.sqrt(16), Python explicitly calls the optimized function from the imported math module.
  • The return value is a floating-point number (4.0) because roots frequently evaluate to decimal values.

4. Method 2: Importing Specific Functions (from ... import ...)

If your script only requires a specific tool rather than an entire library, importing the entire module is unnecessary. You can selectively import individual functions using the from and import keywords:

from math import sqrt

Direct Invocation Without Module Prefixes

When a function is imported individually, it enters your local namespace directly, allowing you to call it without prefixing the module name:

from math import sqrt

# Calling the function directly without 'math.'
print(sqrt(25))

Output:

5.0

Python calculates the square root of 25 and directly prints 5.0.

  • Entire module: import math then math.sqrt(25) — requires the math. prefix.
  • Specific function: from math import sqrt then sqrt(25) — direct call, no prefix.

5. Creating and Using Custom Modules

Beyond utilizing built-in libraries, Python allows developers to create their own custom modules to share code across projects.

Step 1: Create a Python File (.py)

In your project directory, create a standard Python file with a .py extension (for example, mymodule.py). Inside this file, define one or more reusable functions:

# Content saved inside mymodule.py
def greet():
    print("Hello I am the modules file")

Step 2: Import the Custom Module in Your Main Script

In your Jupyter Notebook or working script located in the same directory, import the file using its filename without the .py extension:

import mymodule

# Calling the function defined inside mymodule.py
mymodule.greet()

Output:

Hello I am the modules file

How Python Resolves Module Names

When import mymodule executes:

  1. Python searches its built-in and globally installed system libraries to check if a module with that name exists.
  2. If no system library matches, Python checks the local working directory/path and loads your local mymodule.py file.
  3. You can define multiple functions within a single custom module and call each using mymodule.function_name().

Lesson Q&A

While a function is a small, reusable block of code written to perform a specific task within a program, a module is a separate file (ending in .py) that contains multiple functions, variables, and logic. Modules allow developers to organize large codebases into reusable packages that can be imported and shared across different programs, saving development time and avoiding duplicate code.

import math imports the entire math library into your script. To call any function, you must use the dot operator with the module name as a prefix (e.g., math.sqrt(16)), which prevents naming conflicts with local functions. from math import sqrt selectively imports only the sqrt function into your program. Because the function is imported directly, you can call it without the module prefix (e.g., sqrt(25)).

To create a custom module: (1) Create a Python script saved with a .py extension (such as mymodule.py) and define your functions inside it. (2) In your working script or Jupyter Notebook in the same folder, write import mymodule (omitting the .py extension). (3) Python will locate your local file and allow you to call its functions using dot notation (e.g., mymodule.greet()).

What children can learn

WhatsApp +92 322 421 7059

AI and Robotics Club | The 100 Mission AI & Robotics Hero Journey

100 Mission playlist · Saturday live 12–1 PM GMT

Recommended self-paced course for parents & educators

Robotics Miniature Modeling for Kids on Udemy.

Disclosure: This page contains affiliate links. We may earn from qualifying purchases at no extra cost to you. Links are intended for parents and educators, not as marketing directed at young children.

Sense, Decide, Act: English Robotics Practice for Minato Expat Families

Minato-ku—including Hiroo, Azabudai and Roppongi—hosts many international-school families who want structured STEM without another Tokyo commute. Our approach centres on the sense–decide–act loop so children understand how a sensor reading becomes a decision and how that decision drives a motor or indicator.

Software simulators keep early electronics practice safe; physical kits remain optional under adult supervision. This page does not invent a Minato classroom address, fixed prices or guaranteed IB grades. JST evening and weekend windows can be discussed on enquiry via WhatsApp +92 322 4217059.

Parents support progress best by asking children to explain one idea in their own words. Supervise online accounts. The free 100 Mission playlist and Saturday live support (12–1 PM GMT) extend practice without pressure.

Frequently asked questions

Are these online robotics classes for expat kids in Minato-ku, Tokyo taught in English?

Yes! All live online classes, course slides, and project materials are conducted 100% in English by expert mentors. Designed specifically for international school families in Minato-ku (including Hiroo, Azabudai, and Roppongi), our sessions fit seamlessly into Japan Standard Time (JST) evening and weekend schedules.

How does the robotics curriculum align with international school STEM standards in Minato-ku?

Our project-based engineering modules reinforce computational logic, sensor feedback, and hardware control. Consequently, expat students build strong technical portfolios that complement IB MYP and American curriculum science standards.

How can parents in Minato-ku reserve a free live trial class for their child?

Reserving a spot is instant and straightforward. Click the WhatsApp button on this page to chat with our admissions coordinator, pick a convenient JST time slot, and receive a free live trial link.

Explore related learning

ShibuyaScratch · Shibuya ShinjukuArduino · Shinjuku RoppongiAI · Roppongi