Nano

Nano

October 23, 2025
2 min read
35views
Emelda Ezeugwu

Emelda Ezeugwu

I'm a Writer, Science lover, and Data thinker.

Table of Contents

What is Nano?

Think of Nano as a notebook inside Termux — but a special kind of notebook.

It’s where you can write your Python code and save it as a file.

Let me explain it in a way that feels super easy.

Example Story:

Let’s say you open Termux and type your Python directly:

python

Then inside Python you type:

print("Hello, Dimma!")

That works! But when you close Termux, that code disappears — it’s not saved anywhere.

So, what if you want to save your code and come back to it later?

That’s where Nano comes in!

Nano helps you:

Create a file (like a notebook),

Type your code inside it,

Save it to your phone,

Run it anytime later.

How Nano Works (step by step):

  1. In Termux Type:

nano my_first_code.py

What this means:

nano = open the Nano text editor

my_first_code.py = the name of your new file

(the “.py” part means it’s a Python file).

  1. Now, Termux will open a blank page — that’s your coding notebook.

You can start typing your Python code inside it, like:

print("Hello, Dimma!")
print("Welcome to Python")

  1. When you’re done typing, press:

CTRL + O → (to “write out” or save your work)

Then press Enter → (to confirm the file name)

Then press CTRL + X → (to exit Nano and go back to Termux)

  1. Now, your file is saved!

To run it, type:

python my_first_code.py

And you’ll see:

Hello, Emelda!
Welcome to Python

So, simply put:

Tool & What it does:

  • Termux - Lets your phone behave like a computer.

  • Python - The language you’ll use to tell your computer what to do.

  • Nano - Simple text editor where you write and save your Python programs.

So you can think of Nano as:

“The paper where you write your code before you run it.”

Rate this article

Share this article

Related Articles

Smart Home Technology: Gadgets to Simplify Your Life

Smart Home Technology: Gadgets to Simplify Your Life

Discover how smart home technology simplifies daily tasks with innovative devices—from voice-controlled smart speakers and energy-saving thermostats to automated lighting and security systems. Upgrade...
848
1
0
Top 10 New Trending Technologies To Learn in 2025

Top 10 New Trending Technologies To Learn in 2025

Explore the top trending technologies to learn in 2025, from Generative AI to Cybersecurity, Blockchain, Cloud Computing, and more. Stay ahead in the tech industry and unlock high-paying opportunities...
473
1
0
Building Secure APIs with Laravel Sanctum

Building Secure APIs with Laravel Sanctum

A step-by-step guide to protecting your Laravel API using Sanctum’s token-based authentication.
333
2
0