0Pricing
Coding for Kids · Lesson

A Smiley Face

Build a face.

A Smiley Face is a free Coding for Kids lesson on CoddyKit — lesson 3 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Coding for Kids learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Make It Smile! 😊

Hi artist! 👋 Today we build a happy smiley face out of symbols! 😊

Eyes, a nose, a big grin... let's draw a friend! 🎨

print("Let's draw a smiley! 😊")

Two Eyes 👀

Every face starts with eyes! Let's use the letter o for eyes! 👀

print("o   o")

Add a Nose 👃

Now a nose in the middle. A capital L makes a cute nose! 👃

print("o   o")
print("  L")

A Big Smile 😁

Time for the best part... the SMILE! 😁

Underscores and slashes make a happy mouth!

print("o   o")
print("  L")
print("\\___/")

What's That \\? 🤔

You saw \\ in the code. The backslash \ is special in Python, so we write TWO to show ONE! 🪄

It's a little trick to print a real backslash. 😉

print("One backslash: \\")
print("A slash: /")

Put It in a Face Circle ⭕

Let's wrap our face in a round border to make a head! ⭕

print(" ----- ")
print("|o   o|")
print("|  L  |")
print("|\\___/|")
print(" ----- ")

Different Eyes 😎

Change the eyes to make different feelings! Try ^ for happy eyes! 😆

print("^   ^")
print("  L")
print("\\___/")

A Surprised Face 😮

Make a round mouth O for a surprised face! 😮

Feelings change with tiny symbol swaps!

print("o   o")
print("  L")
print("  O")

A Face Function 🛠️

Let's make a function that draws a smiley whenever we call it! 🛠️

def smiley():
    print("o   o")
    print("  L")
    print("\\___/")

smiley()

Many Faces! 👨‍👩‍👧‍👦

Call the function in a loop to make a whole crowd of smileys! 🎉

def smiley():
    print(":)")

for i in range(3):
    smiley()

Face Artist! 🏆

You drew a smiley face! 🎉

  • Eyes with o or ^ 👀
  • A nose like L 👃
  • A smile with \\___/ 😁
  • \\ prints one backslash 🪄

Next: design your OWN ASCII art! 🎨

print("I can draw faces! 😊🥇")

Quick Check ✅

Let's test what you learned! 🧠

Recap Time! 🎒

Great work, face artist! 🌟

  • Build faces from eyes, nose, mouth 😊
  • Swap symbols to change feelings 😮😎
  • \\ = one backslash 🪄
  • Functions draw faces on demand 🛠️

Next: create your very own art! 🎨

print("A Smiley Face: complete! 🚀")

Frequently asked questions

Is the “A Smiley Face” lesson free?

Yes — the full text of “A Smiley Face” is free to read here on the web, and the Coding for Kids course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Coding for Kids course, upgrade to CoddyKit PRO.

What will I learn in “A Smiley Face”?

Build a face. You practise Coding for Kids with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start Coding for Kids?

No prior experience is required. Coding for Kids on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 4, so you can start here or from the beginning and move at your own pace.

How long does the “A Smiley Face” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this Coding for Kids lesson?

Yes. Every Coding for Kids lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. Drawing with Letters
  2. Boxes and Borders
  3. A Smiley Face
  4. Your Own ASCII Art
← Back to Coding for Kids