Python – Data Types (Objects)


In the Python programming language, there are three types objects (or data types – data type):

  • scalar (indivisible)
    • int (integers, integer, e.g. 5);
    • float (real number, numbers with a semicolon, for example: 5.5);
    • bool(true/false, true/false);
  • non-scalar (divisible)
    • str (string, string – all letters, text; everything that is not numbers).

Find out data type in Python:
type(…)

Example:
type(‘a’) – write a command

str – get the answer


This entry was posted in Python (en). Bookmark the permalink.

Leave a Reply

🇬🇧 Attention! Comments with URLs/email are not allowed.
🇷🇺 Комментарии со ссылками/email удаляются автоматически.