exact meanings have changed slightly over time. the latest version of python (python 3) is the simplest and most consistent, so i will explain with that.
let's start with the idea that there are two kinds of things: values and the types of those values.
a value in python can be, for example, a number, a list, or even a function.
types of values describe those. so the type of a number might be int for example.
so far we have only considered things "built in" to the language. but you can also define your own things. to do that you define a new class. the type() function will say (in python 3) that the type of an instance of your class is the class itself:
so maybe you define a class called MyFoo:
>>> class MyFoo:
>>> def __init__(self, a):
>>> self.a = a
>>>
>>> foo = MyFoo(1)
>>> type(foo)
<class '__main__.MyFoo'>
compare that with integers:
>>> type(1)
<class 'int'>
and it's clear that the type of your value is its class.
so values in python (eg numbers, lists, and even functions) are all instances of classes. and the type of a value is the class that describes how it behaves.
now things get more complicated because you can also assign a type to a value! then you have a value that is a type:
>>> x = type(1)
>>> type(x)
<class 'type'>
it turns out that type of any type is type. which means that any class is itself an instance (of type). which is all a little weird. but it's consistent and not something you need to worry about normally.
so, in summary, for python 3 (which is simplest):
- every value has a type
- the type describes how the value works
- types are classes
- the type of an instance of a class is its class
- numbers, lists, functions, user-defined objects are all instances of classes
- even classes are instances of classes! they are instances of
type!
finally, to try answer your exact question. some people call classes data types and the instances data structures (i think). it's messy and confusing and people are not very careful. it's easiest to just stick with classes and types (which are the same thing really) and instances.