needmoreeasy EN 한국어

Write a sentence. The computer does it.

You do not need to have written a program before, and you do not need to install anything. Type say Hello in the box below and press Run. Hello appears. That is a program, and you just wrote it.

public beta free, Apache-2.0 works on a phone English & Korean

If any word here is unfamiliar, ask the AI you already use. There is something ready to paste.

you write
ask name What is your name?
say Hello name!
3 times say Welcome
the computer says
What is your name? Mina
Hello Mina!
Welcome
Welcome
Welcome

Your writing box

Write here, press Run, read the answer below.

Press one of the examples below and its program opens in this box. Change it, run it again. Nothing you write leaves this tab, and three files stay here for you.

See this example another way
Examples.nme
Pythonthe same program, written the hard way

        
      
Write it any way you like. This rewrites it in one way of writing, and the program stays the same.
Keep more than three — your saved programs

    The Python engine on this page is RustPython, a Python rebuilt so that it can run inside a browser. It is not quite the same as the Python people install on a computer. Programs that open files on your machine or use the network will not run here — those need NME installed on your own computer. Everything else behaves the same in both places.

    First steps

    Three sentences, and you can already write programs.

    Press “open this” on any of them. It appears in the box above; press Run and watch. Nothing here can break anything.

    1. 1. Say something

      A sentence that starts with say puts words on the screen.

      say Hello
      say I am learning to write programs
      open this
    2. 2. Ask a question

      ask for stops and waits for you to type. The answer is kept under the name you chose, and you can use that name later.

      ask name What is your name?
      say Nice to meet you name
      open this
    3. 3. Do it many times

      Put a number and the word times in front of anything.

      5 times say I will not forget this
      open this

    That is the whole idea. Everything else is more sentences — the guides add one at a time, starting from exactly here.

    If anything here does not make sense, ask your own AI.

    Copy one of the three below and paste it at the top of a chat with ChatGPT, Claude or whichever assistant you use. From then on you can just say “write me an NME program that counts to ten”.

    1. Teach my AI sentence grammar The short one. Sentences only — no Python, no brackets. Start here if you have never written a program. details
      Open as a page
      Loading…
    2. Teach my AI all three ways of writing Sentences, the shorter beginner form and Python, plus the modules and every error number. For working with someone who writes Python. details
      Open as a page
      Loading…
    3. Teach my AI everything, with finished examples The two above plus twelve complete programs. The longest and the most accurate. details
      Open as a page
      Loading…

    Sentences are not a toy

    Lists, records, stories, a clock, named jobs — all of it is sayable.

    Sentence grammar is not a warm-up you grow out of. It is the language. The first sixteen guides do not contain a single line of Python.

    A story that types itself

    Words arriving one letter at a time, the way a novel reads.

    say slowly The door opened.
    1 second wait
    say slowly Nobody was there.

    A screen you draw on

    Clear it, rule a line across it, put a message in a box.

    clear the screen
    draw a line
    say in a box Shop

    A clock and a cooldown

    Time how long something took, or make a door usable once every three seconds.

    start the timer
    ask answer Ready?
    show elapsed

    Lists

    Making one, adding to it, counting it, sorting it, asking what is in it — no brackets anywhere.

    set items to an empty list
    append apples to items
    show how many items
    show items joined by comma

    One value under each name

    Found by name rather than by place. An address book and a stock list are both this shape.

    set book to an empty record
    put Mina at Seoul in book
    show Mina in book
    show how many book

    A job with a name

    Give several lines a name, then run them by that name as often as you like.

    to greet:
        show Hello
        show Nice to meet you
    end
    do greet

    Chance

    Dice, a coin, a one-in-three surprise — said as a percentage.

    set die to random number from 1 to 6
    30% chance say You found a coin

    Who writes in it

    People who find Python hard — and people who find Python boring.

    When Python is hard

    Quotes, brackets, colons and indentation all arrive on the first day, and the rules get in front of the thing you wanted to make. Sentence syntax has none of those four. When you want them, you replace one line at a time with Python, in the same file.

    When Python is boring

    Sometimes you know exactly what you want to build and you are not in the mood to study a language first. Write the thing instead. A sentence you would say out loud is a line that runs, so the first version of what you had in mind exists tonight rather than after a course.

    Half a joke: NME is unusually well suited to paper coding — writing a program by hand, on paper, away from a machine. There are no quotes and no brackets to get wrong, and a line reads back as a sentence. Running it still happens here.

    Three ways to write the same thing

    You can ignore the other two for as long as you like.

    NME turns what you write into Python — a language a great many people already use. The panel on the right of the box above shows that happening, live. You never have to read it. It is there for the day you are curious, and for the day someone asks you for “the Python”.

    Sentence

    start here — and stay as long as you like

    Say what you want to happen. No quotes, no brackets, no equals sign.

    3 times say Welcome

    Beginner

    shorter, whenever you feel like it

    The same ideas in fewer words, with fewer rules than Python.

    3 times: say "Welcome"

    Python

    for people who already write Python

    Real Python, kept byte for byte. Mix it in one line at a time.

    for i in range(3): print("Welcome")

    Two human languages

    English and Korean can share a line.

    Every NME word exists in both languages, and mixing them needs no setting and no declaration. For a first language that matters: you keep writing in the words you actually think in.

    When something is wrong, the message carries a fixed number such as E0102, and it is written in both languages at once — so you can show it to anyone, or to an AI, and they will know what it means.

    이름을 물어봐 What is your name?
    show Hello 이름!
    3번 반복해서 Welcome 말해줘

    Learn

    Everything is on this site. You never have to open GitHub.

    The guides go in order, each one short, each one adding a single idea. Every example in them opens in the box above and runs in the same tab — on a phone too.

    Later, if you want it

    On your own computer it uses your real Python.

    You do not need this to learn. It is for the day you want a program that saves files, reaches the network, or runs without a browser. This is the public beta and it builds from source: you need stable Rust, Python 3.8 or newer, and Git. The command below takes the beta branch, and the compiler on this page is sometimes newer than it — that is why the most recently added sentences may not work yet in an installed copy.

    Installation guide · Five-minute guide

    git clone --branch beta https://github.com/needmoretruth/needmoreeasy.git
    cd needmoreeasy
    cargo install --path crates/nme-cli --locked
    nme --version
    
    nme run examples/hello-sentence