Knaph

Type conversion

Turning a value of one type into another - text a user typed into a number with int or float, a number into text with str - since a language like Python won't do it by guessing.

Depth 1 · Foundation

You know input always gives text, convert it with int, float and str where needed, and can read the ValueError and TypeError you get when you don't.

Sign in to prove what you know with a short quiz, see how deep you've gone, and earn XP for it.

Sign in with Google