Lesson 24 · From text to number

Intermediate programming · 4 min · See the playlist on YouTube ↗

✓ You already watched this lesson

When someone types a five in the terminal, what arrives isn't the number five, but the character five. Converting it is what lets you do math with what the user writes.

🎯 The challenge of this lesson

Change the ten to any number you like, and then try writing a word instead of a number to see what the program says.

Practise in the app

Read the written page for this lesson →

Stuck on this lesson?

Write your question and another student — or the teacher — will answer. Your email is never published: it is only used to let you know when someone replies.

Before being published, every message goes through an automatic filter that rejects bad language and any attempt to intimidate another person.

  • Loading the questions…