All books

Professional

Apps About Coach Log in Start reading

Computer Science · Glossary

What is Type?

Also known as: type (of a value)

Definition 15.3 Primary & Middle School Computer Science · Chapter 15 — Variables and Input

The type of a value is the kind of value it is. Whole numbers have the type int (for integer), decimal numbers the type float, and texts in quotes the type str. The instruction type(...) gives the type of a value.

Three types, three kinds of box. The same symbol + does different things with them.
Three types, three kinds of box. The same symbol + does different things with them.
Read in context →