Lloji i te dhenave ne Python - Meso Python - Meso Programim

Lloji i te dhenave ne Python 

Ne programim lloji i te dhenave eshte nje koncept i rendesishem. Variablat mund ti marrin vlerat e llojeve te ndryshme. Keshtu lloje te ndryshme kryejne funksione te ndryshme.

Ne python kemi lloje te ndryshme te dhenash qe ndahen ne kategorite si meposhte:

Lloji tekst : str
Lloji numer : intfloatcomplex
Lloji sekuences : listtuplerange
Lloji mapping :  dict
Lloji boolean : bool
Lloji binar : bytesbytearraymemoryview

Ne Python mund ta shikojme llojin e te dhenave te cdo objekti duke perdorur funksionin  type() :

x = 100
print(type(x))

ShembullLloji i te dhenave
x = "Snapkod"str
x = 69int
x = 2.5float