AI engineering glossary · Python core

What is data type?

Data type: A category that tells Python what kind of value an object is and which operations it supports. Common built-in types are int, float, str, bool, list, tuple, set and dict. Types decide, for example, whether + adds numbers or joins text.

Level: beginnerTopic: Python core

Data type: an example

type(3.5) returns float, while type('hello') returns str, so 3.5 + 1 works but 'hello' + 1 raises an error.

Related terms

More Python core terms

Where you learn it

Data type is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.